k_nearest_mean_filter {whitebox} | R Documentation |
A k-nearest mean filter is a type of edge-preserving smoothing filter.
k_nearest_mean_filter(input, output, filterx = 11, filtery = 11, k = 5, verbose_mode = FALSE)
input |
Input raster file. |
output |
Output raster file. |
filterx |
Size of the filter kernel in the x-direction. |
filtery |
Size of the filter kernel in the y-direction. |
k |
k-value in pixels; this is the number of nearest-valued neighbours to use. |
verbose_mode |
Sets verbose mode. If verbose mode is False, tools will not print output messages. |
Returns the tool text outputs.