ImageGear .NET
CheckForNoise Method
Example 




1-bit ImGearPage object to apply the method to.
Object size threshold value.
Checks the black pixels noise on the page.
Syntax
'Declaration
 
Public Shared Function CheckForNoise( _
   ByVal page As ImGearPage, _
   ByVal objectSize As Integer _
) As Integer
'Usage
 
Dim page As ImGearPage
Dim objectSize As Integer
Dim value As Integer
 
value = ImGearIC.CheckForNoise(page, objectSize)
public static int CheckForNoise( 
   ImGearPage page,
   int objectSize
)
public: static int CheckForNoise( 
   ImGearPage* page,
   int objectSize
) 
public:
static int CheckForNoise( 
   ImGearPage^ page,
   int objectSize
) 

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
// Check the page for a pixel object exceeding size 12 to see if it is blank or not.
int objectCount = ImGearIC.CheckForNoise(igPage, 12);
' 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

Reference

ImGearIC Class
ImGearIC Members
ImGearPage Class

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback