ImageGear for .NET
Despeckle Method
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : Despeckle Method




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

Glossary Item Box

Removes color noise from a binary (1-bit) 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

Despeckle is used to help reduce the amount of noise in the image. Single pixels and pixel spurs on letters and graphics are removed while leaving the solid areas alone. It is typically used on 1-bit document images.

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.

Example

C#Copy Code
// Despeckle a 1-bit image using a 3x3 area.
ImGearRasterProcessing.Despeckle(igRasterPage, 3, 3);
Visual BasicCopy Code
' Despeckle a 1-bit image using a 3x3 area.
ImGearRasterProcessing.Despeckle(igRasterPage, 3, 3)

See Also

©2013. Accusoft Corporation. All Rights Reserved.