Apply imager operations to layers of an image
Source:R/apply_imager_operation.R
apply_imager_operation.RdInternal wrapper function for applying any of several
imager morphological operations for cleaning pixsets.
Arguments
- pixset
An object of class
pixset. Usually a layer fromsplitByColor()that has been converted to apixsetobject.- imager_function
The name of an imager morphological operation that can be performed on a pixset, passed as a string. See details.
- ...
Further arguments passed to the imager function being used.
Details
Current imager operations are:
imager::grow(): Grow a pixsetimager::shrink(): Shrink a pixsetimager::fill(): Remove holes in an pixset. Accomplished by growing and then shrinking a pixset.imager::clean(): Remove small isolated elements (speckle). Accomplished by shrinking and then growing a pixset.