Despeckle(Int32,Int32,Int32,Int32) Method (AcquiredImage)
Removes noise from image.
This method removes noise from image. Current algorithm removes three types of noise:
1. Small noise - a set of pixels (non background pixels) with quantity of pixels less than value of level1 parameter. This set of pixels will be replaced to background pixels.
2. Medium noise - a set of pixels (non background pixels) with quantity of pixels less than value of level2 parameter. This set of pixels will be replaced to background pixels if around this set of pixels in a region with radius of value of radius parameter there is no "good objects". "Good object" - not a noise.
3. "Border" noise - a set of pixels (non background pixels) with quantity of pixels less than value of level3 parameter. This set of pixels will be replaced to background pixels if at least one pixel from this set of pixels is located on an image border.
Here is a "good" sequence of operations for image processing:
1. Despeckle an image (Despeckle(Int32,Int32,Int32,Int32) method)
2. Deskew an image (Deskew(TwainBorderColor,Int32,Int32) method)
3. Detect image border (DetectBorder(Int32) method)
Please see example here: AcquiredImage.
Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5