Converts a line segment pattern to a pixel image by measuring the length or number of lines intersecting each pixel.
1 2 3 4
Line segment pattern (object of class
Optional window (object of class
Optional arguments passed to
Optional vector of weights associated with each line segment.
String (partially matched) indicating whether to compute the
total length of intersection (
Logical value, indicating whether the resulting pixel values should be divided by the pixel area.
This function converts a line segment pattern to a pixel image by computing, for each pixel, the total length of intersection between the pixel and the line segments. Alternatively it can count the number of line segments intersecting each pixel.
This is a method for the generic function
pixellate for the class of line segment patterns.
The pixel raster is determined by
and the optional arguments
W is missing or
NULL, it defaults to the window
W is converted to a
binary pixel mask using
as.mask. The arguments
... are passed to
control the pixel resolution.
weights are given, then the length of the intersection
between line segment
i and pixel
j is multiplied by
weights[i] before the lengths are summed for each pixel.
A pixel image (object of class
"im") with numeric values.
as.mask.psp if you only want to know
which pixels are intersected by lines.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.