Dear all,

I have binary images, and would like to generate a distance map from the
ONEs.
I tryed to use spatstat to solve this but may be it not work.

require(spatstat)
my.matrix<-matrix(sample(c(0,1),100, replace=T), ncol=10)
image(my.matrix)

my.image<-as.im(list(x=1:10, y=1:10, z=my.image))
my.distmap<-distmap(my.image)

Any help are welcome.

milton

	[[alternative HTML version deleted]]

