Description Usage Arguments Value
Apply a density filter to the pixel map and identify the densest regions.
1 | dense.regions(px, th.u = 0.5, area = 11, th.l = 2/area, dilate.by = 21)
|
px |
Data frame containing pixel coordinates to be examined |
th.u |
Upper density threshold: any region with density above this threshold will be marked. Default is 0.5 |
area |
Size of area around each pixel to consider when calculating the density at that pixel. Default is 11 (square extending 1mm out from centre pixel in each direction) |
th.l |
Lower density threshold: any region with density above this threshold, if contiguous with density above the upper threshold, will be marked. Ensures that the edges of dense regions are also identified. Default is 0.05 |
dilate.by |
Size of structuring element to use in smoothing and dilating the edges of the identified area, to ensure that all edge pixels are included. Default is 21. |
offset |
Vector giving x- and y- offsets of image. To be used in padding the image to avoid edge effects |
Original pixel list, with column 'f.type' populated with factor 'dense.region' where appropriate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.