基于不规则成像机器视觉系统,提出一种棉花白色异性纤维检测的图像分割算法:采用Gabor算子提取多个方向的特征向量,融合成特征图,由此增大背景与目标之间的对比度;然后基于特征图的统计规律进行二值分割,最后应用形态特征分离目标与背景。实验结果表明,该算法抗噪能力强、能检出白色异性纤维。
It is difficult to detect white foreign fibers in cotton by traditional machine vision systems and image segmentation methods,because the color of the targets and background is very close.To solve the problem,an image segmentation algorithm for a machine vision system with an irregular imaging function was presented.Using Gabor operator to extract the orientation feature vectors of an image,combined them into a feature map,thus the contrast between the background and targets was improved by the algorithm.Then a threshold was calculated according to the statistical characteristics of the feature maps.Finally,the white foreign fibers were separated from cotton in the binary image,and the image noises were eliminated by a morphological operation.The experimental results indicated that the algorithm is anti-noise and capable of detecting the targets.