Hi,

I have a set of coordinates representing a shape (i.e. a square). I would like to perform an Euclidean dilation operation, i.e., find all the point that lie at a distance r from the shape contour. I tried with the dilation function in the "spatstat" package but I could not get the coordinates of the points forming the dilated contour, nor the number of those points. In the case of a square it might be a trivial exercise. However I don't always have squared objects to perform the dilation on.

coord <- matrix(c(1,1,1,2,1,3,1,4,1,5,1,6,2,1,3,1,4,1,5,1,6,1,2,6,3,6,4,6,5,6,6,6,6,2,6,3,6,4,6,5),ncol=2,byrow=T)

I would really appreciate if anyone can point me in the right direction.

Cheers
Lorenzo


	[[alternative HTML version deleted]]

