ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / ImageClean Component API Reference / ImageClean Component Structures Reference / AT_IC_PUNCH_HOLE_PARAMS
In This Topic
    AT_IC_PUNCH_HOLE_PARAMS
    In This Topic

    This structure specifies parameters for IG_IC_remove_punch_holes function.

    Declaration:

     
    Copy Code
    typedef struct tagAT_IC_PUNCH_HOLE_PARAMS
    {
          AT_DOUBLE dMinDiameter;
          AT_DOUBLE dMaxDiameter;
          AT_DOUBLE dMinAspect;
          AT_DOUBLE dMaxAspect;
          AT_INT nAccuracy;
          enumIGICUnits nUnit;
    }
    AT_IC_PUNCH_HOLE_PARAMS, *LPAT_IC_PUNCH_HOLE_PARAMS;
    

    Members:

    Name Type Description
    dMinDiameter AT_DOUBLE Minimal object size to remove, size considered as diameter respective circle. Measure unit is set by Unit field. Default value is 4 mm.
    dMaxDiameter AT_DOUBLE Maximal object size to remove, size considered as diameter respective circle. Measure unit is set by Unit field. Default value is 8 mm.
    dMinAspect AT_DOUBLE Minimal width/height ratio of object dimensions. It can be used to detect non-round holes. Default value is 0.95.
    dMaxAspect AT_DOUBLE Maximal width/height ratio of object dimensions. It can be used to detect non-round holes. Default value is 1.05
    nAccuracy AT_INT Accuracy of the punch hole's detection. It is measured in percentage (%). Default value is 80%.
    nUnit enumIGICUnits Hole's size measure unit. Default value is IG_IC_UNIT_MM.