- imgdat
(required) image data. Either a single image, or a series of images
stored in a list. Preferably the result of getimg()
.
- method
methods for image segmentation/classification.
'kMeans'
: k-means clustering (default)
'kMedoids'
: k-medoids clustering, using the partitioning-around-medoids ('pam')
algorithm for large datasets.
- kcols
the number of discrete colour classes present in the input image(s).
Can be a single integer when only a single image is present, or if kcols is identical for all
images. When passing a list of images, kcols
can also be a vector the same length
as imgdat
, or a data.frame with two columns specifying image file names and
corresponding kcols. This argument can optionally be disregarded when interactive = TRUE
,
and kcols will be inferred from the number of selections.
- refID
either the numeric index or name of a 'reference' image, for use when passing
a list of images. Other images will be k-means classified using centres identified
in the single reference image, thus helping to ensure that homologous pattern elements
will be reliably classified between images, if so desired.
- interactive
interactively specify the colour-category 'centers', for k-means clustering.
When TRUE
, the user is asked to click a number of points (equal to kcols
,
if specified, otherwise user-determined) that represent the distinct colours of interest.
If a reference image is specified, it will be the only image presented.
- plotnew
Should plots be opened in a new window when interactive = TRUE
?
Defaults to FALSE
.
- col
the color of the marker points, when interactive = TRUE
.
- ...
additional graphical parameters when interactive = TRUE
.
Also see graphics::par()
.