AOI histogram statistical algorithm
Histogram statistical algorithm refers to a gray-scale processing and analysis algorithm that determines and detects whether the test point falls within the standard range by statistically analyzing the brightness distribution or brightness variation within the ROI area. This algorithm includes the maximum value (Max) algorithm, the minimum value (Min) algorithm, the luminance Range (Range) algorithm and the average value algorithm. Its algorithm flag in the detection algorithm is "Histogram".
The maximum value algorithm refers to a gray-scale statistical algorithm that obtains the average luminance of the N% luminance points with the maximum luminance within the ROI region. If the target area attacks 1000 luminance points, the maximum 5% of luminance points, that is, 50 luminance points, and the average luminance of these 50 points is 200, then the return value of the maximum value algorithm is 200, and the maximum value of the image is 200. This algorithm is mainly used for the detection of defects such as foreign objects.
The minimum value algorithm refers to a gray-scale statistical algorithm that obtains the average luminance of the N% luminance points with the lowest luminance within the ROI region. If the target area attacks 1000 luminance points, the minimum 5% of luminance points, that is, 50 luminance points, and the average luminance of these 50 points is 20, then the return value of the maximum value algorithm is 20, and the maximum value of the image is 20. This algorithm is mainly applied to the detection of defects such as foreign objects.
The luminance span algorithm refers to a gray-scale statistical algorithm that calculates the luminance difference between the maximum and minimum values within the ROI region. For example, if the maximum value of the target area is 200 and the minimum value is 20, then the luminance span is 180. This algorithm is mainly applied to the detection of defects such as missing parts.
The average value algorithm refers to a gray-scale statistical algorithm for calculating the average brightness of all brightness points within the ROI area. This algorithm is mainly applied in the detection of defects such as missing parts.