ImageGear Professional for Windows ActiveX
FilterWithMedian Method

Description:

Performs a median filter on 8-bit gray level and 24 bit images. A median filter is useful for reducing spike or snow-like noise from an image. The width and height determine the size of each original pixel's neighborhood to use to compute the median output pixels. Most applications will find that 3x3 or 5x5 works best.

This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.

Syntax:

      FilterWithMedian (ByVal pPage As IGPage, ByVal neighWidth As
Long, ByVal  neighHeight As Long)

Parameters:

Name Description
pPage Reference to IGPage Object to which a median filter is applied.
neighWidth Width of the neighborhood to include in computing each new pixel's value.
neighHeight Height of the neighborhood.

Return Value:

N/A

Bits Per Pixel:

All except indexed with >1bpp

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback