Considering the incorrect segmentation faults of IVC model segmenting the gray uneven images, this paper proposes an improved algorithm. It removes the gradient information and replaces some factors with constant, which not only decreases the convergence time, but also can segment the gray uneven images accurately. In view of the sunflower seeds'holes not obvious in the weak light, it enhances its gray linearly and uses the improved IVC model to segment goals, and then combines with local gray characteristics to detect hole defections. The results demonstrate that this algo-rithm can segment the holes accurately and determine whether its area is hole defects and its average process time is about 30 ms, so it has strong application value.%针对IVC模型分割灰度不均匀图像时存在误分割的不足,对其进行了改进,去除了驱动力中的梯度信息且将部分因子用常数代替,不仅减少了收敛时间而且对灰度不均匀图形可实现准确的分割.针对弱光照下葵花籽孔洞不明显的特点,对其灰度进行线性增强,并用改进IVC模型分割目标;并结合局部灰度特性进行孔洞缺陷检测.实验证明,该算法能够准确地分割孔洞区域并判断该区域是否为孔洞缺陷,平均处理时约为30 ms,有较强的应用价值.
展开▼