Linear filter🔗

Applies a linear filter to images. Linear filters can be used to smooth images, enhance edges, reduce noise etc.

Inputs🔗

  • image: Input image.

  • filterType: The type of the filter.

  • filterSize: The size of the filter in pixels, if applicable. If you need to scale the filter according to the world coordinate system, the filter needs to be calculated separately and connected to the filter input.

  • filter: Filter matrix.

  • borderHandling: Specifies the way borders are handled.

Outputs🔗

  • image: Filtered output image. If the input image is an RGB image, the output will also be RGB, and overflows and underflows will be truncated. If the input is 8-bit gray, the output is either 8-bit or 16-bit depending on the filter: if the filter is such that it cannot cause overflows or underflows, the output will be 8-bit. If the input is a signed image type, the output will be the same type. No overflow or underflow prevention will be applied.

enum BorderHandling🔗

Border handling techniques.

Values:

enumerator Zeros🔗

Assume zeros outside of image.

enumerator Replicate🔗

Replicate the pixel closest to border.

enumerator Reflect🔗

Assume the image is symmetrical about its edge.

enumerator Periodic🔗

Assume the image repeats itself so that it could be seamlessly tiled.

enum FilterType🔗

Supported filter types.

Values:

enumerator Custom🔗

User-defined filter.

enumerator SobelX🔗

Sobel edge detector, horizontal component.

enumerator SobelY🔗

Sobel edge detector, vertical component.

enumerator PrewittX🔗

Prewitt edge detector, horizontal component.

enumerator PrewittY🔗

Prewitt edge detector, vertical component.

enumerator RobertsX🔗

Roberts edge detector, horizontal component.

enumerator RobertsY🔗

Roberts edge detector, vertical component.

enumerator Uniform🔗

A block filter filled with a constant value.

enumerator Gaussian🔗

Gaussian smoothing function (2-D bell curve).

enumerator LaplacianOfGaussian🔗

Smoothed 2nd spatial derivative filter for edge detection.