wbt_k_nearest_mean_filter {whitebox}R Documentation

K nearest mean filter

Description

A k-nearest mean filter is a type of edge-preserving smoothing filter.

Usage

wbt_k_nearest_mean_filter(
  input,
  output,
  filterx = 11,
  filtery = 11,
  k = 5,
  wd = NULL,
  verbose_mode = FALSE
)

Arguments

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.

wd

Changes the working directory.

verbose_mode

Sets verbose mode. If verbose mode is False, tools will not print output messages.

Value

Returns the tool text outputs.


[Package whitebox version 1.4.0 Index]