Convert Line Segment Pattern to Binary Pixel Mask
Converts a line segment pattern to a binary pixel mask by determining which pixels intersect the lines.
as.mask.psp(x, W=NULL, ...)
x |
Line segment pattern (object of class |
W |
Optional window (object of class |
... |
Optional extra arguments passed to |
This function converts a line segment pattern to a binary pixel mask by determining which pixels intersect the lines.
A window (object of class "owin"
)
which is a binary pixel mask (type "mask"
).
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner r.turner@auckland.ac.nz
Use pixellate.psp
if you want to measure the
length of line in each pixel.
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin()) plot(as.mask.psp(X)) plot(X, add=TRUE, col="red")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.