ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : Despeckle Method |
'Declaration Public Shared Sub Despeckle( _ 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.Despeckle(page, neighborhoodWidth, neighborhoodHeight)
public static void Despeckle( ImGearRasterPage page, int neighborhoodWidth, int neighborhoodHeight )
public: static void Despeckle( ImGearRasterPage* page, int neighborhoodWidth, int neighborhoodHeight )
public: static void Despeckle( ImGearRasterPage^ page, int neighborhoodWidth, int neighborhoodHeight )
The despeckle operation performs a median filter on the image. For each pixel in the original image, a single pixel is produced in the output image. The output pixel is the median of the pixel values in the neighborhood area defined by neighborhoodWidth
and neighborhoodHeight
parameters.
// Despeckle a 1-bit image using a 3x3 area.
ImGearRasterProcessing.Despeckle(igRasterPage, 3, 3);
' Despeckle a 1-bit image using a 3x3 area.
ImGearRasterProcessing.Despeckle(igRasterPage, 3, 3)