ImageGear v26.3 - Updated November 9, 2022
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / FilterWithMedian Method / FilterWithMedian(ImGearRasterPage,Int32,Int32) Method
Image to filter.
Width of the square area.
Height of the square area.




FilterWithMedian(ImGearRasterPage,Int32,Int32) Method
Removes color noise from the image.
Syntax
'Declaration
 
Public Overloads Shared Sub FilterWithMedian( _
   ByVal page As ImGearRasterPage, _
   ByVal neighborhoodWidth As Integer, _
   ByVal neighborhoodHeight As Integer _
) 
 
'Usage
 
Dim page As ImGearRasterPage
Dim neighborhoodWidth As Integer
Dim neighborhoodHeight As Integer
 
ImGearRasterProcessing.FilterWithMedian(page, neighborhoodWidth, neighborhoodHeight)

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
See Also