You are here: Start » AVL.NET » AVL.SmoothImage_Median

AVL.SmoothImage_Median

Replaces each pixel with the median of pixels within a kernel.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SmoothImage_Median
(
	AvlNet.Image inImage,
	AvlNet.SmoothImageMedianKernel inKernel,
	int inRadiusX,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inKernelAvlNet.SmoothImageMedianKernel
inRadiusXint<0, INF>1Nearly half of the kernel's width (2*R+1). Default value: 1.
outImageAvlNet.ImageOutput image.

Examples

SmoothImage_Median performed on a sample image with inRadiusX = 4, inRadiusY = Nil.

Errors

List of possible exceptions:

Error type Description
DomainError inRoi exceeds image dimensions in SmoothImage_Median.
DomainError inSourceRoi exceeds image dimensions in SmoothImage_Median.
DomainError Not supported kernel in SmoothImage_Median.
DomainError Not supported pixel format in SmoothImage_Median.

Function Overrides

See also