ImageGear for .NET
CheckForNoise Method
See Also  Example Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.Processing.ImageClean Namespace > ImGearIC Class : CheckForNoise Method




page
1-bit ImGearPage object to apply the method to.
objectSize
Object size threshold value.

Glossary Item Box

Checks the black pixels noise on the page.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
1-bit ImGearPage object to apply the method to.
objectSize
Object size threshold value.

Return Value

Integer The result number of objects.

Remarks

This method takes a 1-bit ImGearPage and a threshold int value specifying an object size and checks the page for the number of objects exceeding the size of the specified threshold value. Object here means a connected group of black pixels. The object size is a diagonal of the minimum circumscribed rectangle that contains the object.

This method can be used to detect blank paper sheets in the scanner tray when the resulting image is almost clear and may contains only several black "noise" pixels.

Example

C#Copy Code
// Check the page for a pixel object exceeding size 12 to see if it is blank or not.
int objectCount = ImGearIC.CheckForNoise(igPage, 12);
Visual BasicCopy Code
' Check the page for a pixel object exceeding size 12 to see if it is blank or not.
Dim objectCount As Integer = ImGearIC.CheckForNoise(igPage, 12)

See Also

©2013. Accusoft Corporation. All Rights Reserved.