ImageGear for .NET
FilterWithMedian(ImGearRasterPage,Int32,Int32) Method
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > FilterWithMedian Method : FilterWithMedian(ImGearRasterPage,Int32,Int32) Method




page
Image to filter.
neighborhoodWidth
Width of the square area.
neighborhoodHeight
Height of the square area.

Glossary Item Box

Removes color noise from the image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
Image to filter.
neighborhoodWidth
Width of the square area.
neighborhoodHeight
Height of the square area.

Remarks

This method looks for an average color value inside the square area near the pixel and replaces the pixel with this value. Processes color channels only.

Example

C#Copy Code
// Changes each pixel to the median of a 3x3 area around the pixel.
ImGearRasterProcessing.FilterWithMedian(igRasterPage, 3, 3);
Visual BasicCopy Code
' Changes each pixel to the median of a 3x3 area around the pixel.
ImGearRasterProcessing.FilterWithMedian(igRasterPage, 3, 3)

See Also

©2013. Accusoft Corporation. All Rights Reserved.