find_caltab:
分割图像中的标准校准板区域。
find_caltab 用于确定输入图像图像中具有圆形标记的平面标定板的区域。
首先对输入图像进行平滑处理(参见 gauss_image);
所使用的滤波器掩模的大小由SizeGauss给出。
然后,应用具有最小灰度值MarkThresh的阈值算子(见threshold)。
在提取的连接区域中,选择具有几乎正确数量的孔(对应于校准板的暗标记)的最凸区域。
为了消除噪声的影响,消除了直径小于预期尺寸的微小标记的孔。
标记的数量是从校准板描述文件CalTabDescrFile中读取的。
这个文件的完整解释可以在gen_caltab的描述中找到。
Parameters
Image
Input image.
Caltab
Output region.
CalTabDescrFile
File name of the calibration plate description. 校准板的文件名说明。
Default value: ‘caltab.descr’
List of values: ‘caltab.descr’, ‘caltab_10mm.descr’, ‘caltab_30mm.descr’, ‘caltab_100mm.descr’, ‘caltab_200mm.descr’
File extension: .descr
SizeGauss
Filter size of the Gaussian.
Default value: 3
List of values: 0, 3, 5, 7, 9, 11
MarkThresh
Threshold value for mark extraction.用于标记提取的阈值。
Default value: 112
List of values: 48, 64, 80, 96, 112, 128, 144, 160
MinDiamMarks
Expected minimal diameter of the marks on the calibration plate.
校准板上标记的最小直径。
Default value: 5
List of values: 3, 5, 9, 15, 30, 50, 70