ImageGear23.Processing.Advanced Assembly > ImageGear.Processing.ImageClean Namespace > ImGearIC Class : CheckForNoise Method |
'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 )
Integer | The result number of objects. |
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.
// 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)