patK {patternize} | R Documentation |
Extract colors using k-means clustering (for pre-aligned images).
Description
Extract colors using k-means clustering (for pre-aligned images).
Usage
patK(
sampleList,
k = 3,
fixedStartCenter = NULL,
resampleFactor = NULL,
maskOutline = NULL,
plot = FALSE,
focal = FALSE,
sigma = 3,
maskToNA = NULL,
kmeansOnAll = FALSE
)
Arguments
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). |
Value
List of summed raster for each k-means cluster objects.