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. |
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.
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 Basic | Copy 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) |