apply_imager_operation {recolorize} | R Documentation |
Apply imager operations to layers of an image
Description
Internal wrapper function for applying any of several
imager
morphological operations for cleaning pixsets.
Usage
apply_imager_operation(pixset, imager_function, ...)
Arguments
pixset |
An object of class |
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:
-
grow
: Grow a pixset -
shrink
: Shrink a pixset -
fill
: Remove holes in an pixset. Accomplished by growing and then shrinking a pixset. -
clean
: Remove small isolated elements (speckle). Accomplished by shrinking and then growing a pixset.
Value
The resulting pixset after applying the specified morphological operation.
[Package recolorize version 0.1.0 Index]