节点文献
彩色图像目标区域周长和面积的计算(英文)
Calculation of the perimeter and area of the target object in color image
【摘要】 设计了基于边界跟踪算法实现图像中目标物体面积和周长的测量。首先,在二值图像的基础上,基于像素点的连通性,对图像内的每个区域进行标记,得到区域数目。然后,基于边界跟踪法对图像的每个区域进行轮廓提取,为了提高精度,跟踪的起始点选择在图像的左上角,逐个像素点扫描,遇到边缘点开始顺序跟踪,直至回到起始点。最后,基于像素点个数,计算目标物体的面积和周长特征。算法在VC++2010编译环境子下调试运行。算法简单易行,结果可靠。
【Abstract】 Based on the boundary tracking method,the measurement of the area and perimeter of the objects in an image is designed in the paper.First,the method of digital image processing and its applications are elaborated,and then a method of color image conversion to grayscale image and binary image is introduced.On the basis of the binary image,based on the connectivity of the pixel spline,each area in the image is marked to get the number of areas.Then,contour extraction is carried out for each area of the image,based on the boundary tracking method.In order to improve the accuracy,the starting point of tracking is selected in the upper-left corner of the image and start apixel-by-pixel scan,when it encounters the edge point,it starts tracking sequentially until it returns to the starting point.Finally,the area and perimeter of the objects are calculated based on the number of pixels.The algorithm in this paper is debugged and run in the VC+ + 2010 compilation environment,and the results are given.The algorithm is simple and easy to implement,and the results are reliable.
【Key words】 color image; binary image; grayscale image; boundary tracking method; area marker;
- 【文献出处】 沈阳师范大学学报(自然科学版) ,Journal of Shenyang Normal University(Natural Science Edition) , 编辑部邮箱 ,2020年01期
- 【分类号】TP391.41
- 【被引频次】2
- 【下载频次】90