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

AVL.SmoothImage_Median Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SmoothImage_Median(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	AvlNet.Region inSourceRoi,
	AvlNet.SmoothImageMedianKernel inKernel,
	int inRadius,
	out AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionRange of outImage pixels being written. Default value: atl::NIL, or null.
inSourceRoiAvlNet.RegionRange of inImage pixels being read. Default value: atl::NIL, or null.
inKernelAvlNet.SmoothImageMedianKernel
inRadiusint<0, INF>1Nearly half of the kernel's size (2*R+1). Default value: 1.
outImageAvlNet.ImageOutput image.

Examples

SmoothImage_Median performed on a sample image with inRadius = 4.

Errors

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

See also