You are here: Start » AVL.NET » AVL.SmoothImage_Median(AvlNet.Image, AvlNet.Region, AvlNet.Region, AvlNet.SmoothImageMedianKernel, int, AvlNet.Image)
AVL.SmoothImage_Median(AvlNet.Image, AvlNet.Region, AvlNet.Region, AvlNet.SmoothImageMedianKernel, int, AvlNet.Image)
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
- inImage
- Type: AvlNet.Image
Input image - inRoi
- Type: AvlNet.Region
Range of outImage pixels being written, or null. - inSourceRoi
- Type: AvlNet.Region
Range of inImage pixels being read, or null. - inKernel
- Type: AvlNet.SmoothImageMedianKernel
- inRadius
- Type: System.Int32
Nearly half of the kernel's size (2*R+1) - outImage
- Type: AvlNet.Image
Output 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. |


