阈值分割主要是基于灰度、对比度等特征,将特定区域提取出来,便于进一步处理。
常用的算子有:threshold,fast_threshold,bin_threshold,binary_threshold,auto_threshold,dyn_threshold,var_threshold等
threshold,原理是筛选出介于最小到最大灰度区间内的区域
基本例子:
read_image (Image, 'particle')
threshold (Image, BrightPixels, 120, 255)
connection (BrightPixels