Skip to content

Calculations with images

1 message · Adrian Baddeley

#
Agustin Lobo <Agustin.Lobo at ija.csic.es> writes:
In spatstat you can also use 'solutionset' to find the pixels that satisfy
a logical statement, and `eval.im' to do calculations with pixel values.
The code above is equivalent to

   ai <- as.im(a)
   aw <- solutionset(ai != 0)
   adist <- distmap(aw)
   adistlog <- eval.im(log(adist)+1)

Adrian Baddeley