90#define AR_PATT_SIZE1 16 // Default number of rows and columns in pattern when pattern detection mode is not AR_MATRIX_CODE_DETECTION. Must be 16 in order to be compatible with ARToolKit versions 1.0 to 5.1.6.
91#define AR_PATT_SIZE1_MAX 64 // Maximum number of rows and columns allowed in pattern when pattern detection mode is not AR_MATRIX_CODE_DETECTION.
92#define AR_PATT_SIZE2_MAX 32 // Maximum number of rows and columns allowed in pattern when pattern detection mode is AR_MATRIX_CODE_DETECTION.
93#define AR_PATT_SAMPLE_FACTOR1 4 // Maximum number of samples per pattern pixel row / column when pattern detection mode is not AR_MATRIX_CODE_DETECTION.
94#define AR_PATT_SAMPLE_FACTOR2 3 // Maximum number of samples per pattern pixel row / column when detection mode is AR_MATRIX_CODE_DETECTION.
95#define AR_PATT_CONTRAST_THRESH1 15.0 // Required contrast over pattern space when pattern detection mode is AR_TEMPLATE_MATCHING_MONO or AR_TEMPLATE_MATCHING_COLOR.
96#define AR_PATT_CONTRAST_THRESH2 30.0 // Required contrast between black and white barcode segments when pattern detection mode is AR_MATRIX_CODE_DETECTION.
97#define AR_PATT_RATIO 0.5 // Default value for percentage of marker width or height considered to be pattern space. Equal to 1.0 - 2*borderSize. Must be 0.5 in order to be compatible with ARToolKit versions 1.0 to 4.4.
98
99
100
101#define AR_AREA_MAX 1000000 // Maximum area (in pixels) of connected regions considered valid candidate for marker detection.
102#define AR_AREA_MIN 70 // Minimum area (in pixels) of connected regions considered valid candidate for marker detection.
103#define AR_SQUARE_FIT_THRESH 1.0 // Tolerance value for accepting connected region as square. Greater value = more tolerant.
104
105#define AR_LABELING_32_BIT 0 // 0 = 16 bits per label, 1 = 32 bits per label.
106#if AR_LABELING_32_BIT
107# define AR_LABELING_WORK_SIZE 1024*32*16
108# define AR_LABELING_LABEL_TYPE ARInt32
109#else
110# define AR_LABELING_WORK_SIZE 1024*32 // This number may not exceed 65535 when using 16-bits labels.