ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing.ImageClean Namespace / ImGearIC Class / CheckForNoise Method
1-bit ImGearPage object to apply the method to.
Object size threshold value.




In This Topic
    CheckForNoise Method
    In This Topic
    Checks groups of connected black pixels on the page and determines if they are noise based on their size. Can be used to detect blank paper sheets when the resulting image is almost clear and may contain only several black noise pixels.
    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 number of objects on the page that are larger than the specified size.
    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.
    Example
    See Also