dense.regions: Find dense regions in pixel map

Description Usage Arguments Value

Description

Apply a density filter to the pixel map and identify the densest regions.

Usage

1
dense.regions(px, th.u = 0.5, area = 11, th.l = 2/area, dilate.by = 21)

Arguments

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

Value

Original pixel list, with column 'f.type' populated with factor 'dense.region' where appropriate.


ClairBee/IO.Pixels documentation built on May 6, 2019, 11:50 a.m.