patK_HSV | R Documentation |
Extract colors using k-means clustering (for pre-aligned images).
patK_HSV(
sampleList,
k = 3,
fixedStartCenter = NULL,
resampleFactor = NULL,
maskOutline = NULL,
plot = FALSE,
focal = FALSE,
sigma = 3,
maskToNA = NULL,
kmeansOnAll = FALSE,
ignoreHSVvalue = FALSE
)
sampleList |
List of RasterStack objects. |
k |
Integere for defining number of k-means clusters (default = 3). |
fixedStartCenter |
Specify a dataframe with start centers for k-means clustering. |
resampleFactor |
Integer for downsampling used by |
maskOutline |
When outline is specified, everything outside of the outline will be masked for the color extraction (default = NULL). |
plot |
Whether to plot transformed color patterns while processing (default = FALSE). |
focal |
Whether to perform Gaussian blurring (default = FALSE). |
sigma |
Size of sigma for Gaussian blurring (default = 3). |
maskToNA |
Replace the color value used for masking (i.e. 0 or 255) with NA. |
kmeansOnAll |
Whether to perform the kmeans clusters on the combined set of pixels of all images first (default = FALSE). |
ignoreHSVvalue |
Whether to ignore the HSV value (~darkness). |
List of summed raster for each k-means cluster objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.