wbt_k_nearest_mean_filter: K nearest mean filter

Description Usage Arguments Value

View source: R/image_analysis.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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.


whitebox documentation built on Sept. 7, 2020, 3 p.m.