Last chance! 50% off unlimited learning
Sale ends in
as.mask.psp(x, W=NULL, ...)
"psp"
)."owin"
)
determining the pixel raster.as.mask
to determine the pixel resolution."owin"
)
which is a binary pixel mask (type "mask"
). The pixel raster is determined by W
and the optional arguments ...
.
If W
is missing or NULL
, it defaults to the window
containing x
.
Then W
is converted to a
binary pixel mask using as.mask
. The arguments
...
are passed to as.mask
to
control the pixel resolution.
pixellate.psp
,
as.mask
. 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")
Run the code above in your browser using DataLab