摘要
[目的]根据原木端面图像的彩色特征,提出一种基于RGB颜色空间的彩色图像分割算法。[方法]选取图像中指定区域作为样本,统计样本中像素点的彩色分量,利用其彩色阈值区间,通过逐点匹配法对图像进行分割。[结果]该方法不仅消除了阴影干扰,而且能够准确地对原木端面进行分割。分割结果图像优化处理后,完整地反映出图像中的原木端面。采用目标图像外接矩形的内接椭圆算法对原木端面图像进行参数测算,结果表明,该算法的测算结果相对误差小于0.5%。[结论]基于RGB彩色空间的原木端面图像分隔方法分隔效果较优,参数测算结果较准确。
[ Objective ] According to the color characteristics of log end images, a color image segmentation algorithm based on RGB color space was proposed. [ Method ] Select the pixels within the specified region of the image as a sample, add up the color component of the pixels in the sample, segment the image by using the color threshold interval of the sample and point by point matching method. [ Result] This meth-od not only eliminated the shadow interference, but also accurately segmented the log end images. After the results of image segmentation was optimized, it reflected completely the log end of the original color image. The algorithm which was the inscribed ellipse of the circumscribing rectangle of the target image was used to calculate the parameters of log end images. Experimental results showed that the error of the algorithm was less than 0.5%. [ Conclusion] The segmentation effects of the log end images segmentation method based on RGB color space is better, and the the algorithm result is more accurate.
出处
《安徽农业科学》
CAS
2014年第23期8039-8042,共4页
Journal of Anhui Agricultural Sciences
基金
国家林业局"948"项目(2010-4-05)