蚕茧表面图像等效阶梯柱面展开
Equivalent step cylinder unfolding of silkworm cocoon surface image
- 2020年25卷第3期 页码:498-506
收稿:2019-06-21,
修回:2019-9-10,
录用:2019-9-17,
纸质出版:2020-03-16
DOI: 10.11834/jig.190296
移动端阅览

浏览全部资源
扫码关注微信
收稿:2019-06-21,
修回:2019-9-10,
录用:2019-9-17,
纸质出版:2020-03-16
移动端阅览
目的
2
在机器视觉的蚕茧分选研究中,完整的表面图像有利于提高蚕茧的识别准确度。由于蚕茧的形状呈长椭圆形,其在成像面上的投影存在信息压缩,需对其图像展开后才能进行拼接,因此提出了一种基于等效阶梯柱面模型的蚕茧表面图像展开方法。
方法
2
对采集到的蚕茧图像预处理后进行椭圆拟合,根据拟合结果建立蚕茧的数学模型,基于微积分化曲为直的思想,将蚕茧模型转化为等效阶梯柱面模型,建立相应的坐标系,推导出阶梯柱面模型展开图与原图的像素坐标映射关系,进而实现蚕茧表面图像的展开。
结果
2
对比本文方法与采用蚕茧最大半径值的柱面展开方法对阶梯柱面模型表面图像的展开结果,评价两种展开方法方格左上角的坐标值与理论值之间的平均绝对误差,本文方法为1.66像素,对比方法为3.06像素。说明本文方法得到的坐标值与理论值的拟合程度更高,绝对误差范围和平均误差值更小。此外,对展开的蚕茧表面图像进行重复部分拼接实验,拼接后图像重叠处及重叠区域边缘的蚕茧表面纹理连续性保持良好。
结论
2
等效阶梯柱面展开方法可以有效的实现蚕茧表面图像展开,还原其表面原始信息,为后续蚕茧表面图像完整拼接提供良好的技术支撑。
Objective
2
Stitching two different angles of silkworm surface images directly is not feasible even with several overlapping areas between them because the shape of a silkworm cocoon is long and elliptical and some information is compressed in its projection on the imaging surface. However
most of the existing image unfolding methods are aimed at cylinders with uniform radius
which is ineffective in the application of cocoon image unfolding. In this study
the surface image unfolding method of silkworm cocoon based on the equivalent step cylindrical model of a silkworm cocoon is proposed according to the shape characteristics of silkworm cocoon.
Method
2
To obtain the surface image of the silkworm cocoon
we designed a set of image acquisition devices
driving the cocoon rotation through the synchronous rotation of two rollers
thereby enabling the camera to conveniently collect the complete image of the silkworm cocoon surface. We assume that the mathematical model of the silkworm cocoons is a rotational ellipsoid
and the image is subjected to gray scale
filter
binarization
and edge extraction successively. Thereafter
the extracted edges are fitted to obtain the ideal mathematical model of the cocoon in the image. A cylinder can be unfolded along one side to a rectangle
where the ideal silkworm cocoon model is divided into
n
segments along the rotational axis according to the calculus. The height of each segment is Δ
h
.Given that Δ
h
is small
the curve can be regarded as a straight line
so a small segment of the ellipse can be equal to a cylinder
and the cocoon model becomes a super position of a series of cylindrical models. Therefore
an equivalent stepped cylinder model of the cocoon model is obtained. The diameter of each small segment of the cylinder is calculated by the diameters of the upper and lower surfaces of the ellipsoidal segment replaced by the cylinder. As the diameter of the silkworm cocoon is extremely small (18 mm)
the error brought by the camera aperture imaging model can be ignored
and the camera catches the parallel projection image of the silkworm cocoon. We set a coordinate system of
O
W
to
X
W
Y
W
Z
W
as the world coordinate system
o
to
xy
as the original imaging plane
and
o
to
uv
as the unfolding plane. Based on the world coordinate system
the pixel coordinate mapping relationship between the unfolding plane of the stepped cylinder model and original image is derived. Reverse mapping is performed by a linear interpolation algorithm
and each pixel in the unfolded image is traversed. The surface unfolding image of the silkworm cocoon is obtained based on the equivalent step cylindrical model with the corresponding pixel values extracted from the original image using the given mapping relationship.
Result
2
The experiment was conducted by the 3D-printed step cylindrical model and the cocoon. In example 1
the surface of the step cylindrical model of 3D printing was pasted with a small black-and-white checker board with a size of 1 mm×1 mm. After the images were acquired
the stepped cylinder image was unfolded using the unfolding method and the cylinder unfolding method with the maximum radius value of the cocoon as the unfolding value. Given that the squares of the checkerboard used in the experiment had the same size
in the ideal state
the size of each square in the unfolded image should be the same. Therefore
based on the coordinates and size of the white grid in the center of the image
the theoretical value of the corner points of all the squares in the ideal unfolded image can be calculated. The unfolding effect is compared by the difference between the coordinate values of the upper left corners of the two unfolding methods and the theoretical values. Results show that the coordinate values obtained by the equivalent step-cylinder surface unfolding method are more than a match for the theoretical value compared with the equal-diameter unfolding method with maximum radius value
and the average relative error is much smaller. In example 2
the equivalent step-cylinder surface unfolding method is tested by a common silkworm cocoon image. When the cocoon image is obtained and preprocessed according to the elliptical circumscribing rectangle
the image is obtained by the ellipse fitting to extract the region of interest
so that the long axis of the ellipse remains vertical and the excess background is removed. The roller control motor of the image acquisition device starts. When the silkworm cocoons rotate a certain angle
the camera obtains another angle of cocoon image with overlapping area with the previous image
and the same preprocessing step on the image is performed to obtain the ROI area of the silkworm cocoon. The two images are unfolded by the unfolding method proposed in this paper. By manually splicing the two unfolded images and observing the silkworm cocoon texture of the overlap of the stitched image and the edge of the overlap region
we can find that the texture continuity of the silkworm cocoon is better and the unfolded image has an improved stitching effect.
Conclusion
2
Results show that the step cylinder unfolding method proposed in this paper has a better unfolding effect than the unfolding method with a single radius value
which can provide a good environmental basis for the mosaic subsequent research on silkworm cocoon surface images. In addition
the method can be applied to the unfolding of other ellipsoidal surface images.
Bors A G, Puech W, Pitas I and Chassery J M. 1997. Perspective distortion analysis for mosaicing images painted on cylindrical surfaces//Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing. Munich, Germany: IEEE: 3045-3052[ DOI:10.1109/ICASSP.1997.595435 http://dx.doi.org/10.1109/ICASSP.1997.595435 ]
Cao H G, Ding X Q and Liu C S. 2003. A cylindrical surface model to rectify the bound document image//Proceedings of the Ninth IEEE International Conference on Computer Vision. Nice, France: IEEE, 1: 228-233[ DOI:10.1109/ICCV.2003.1238346 http://dx.doi.org/10.1109/ICCV.2003.1238346 ]
Chen H, Yang Z, Liu X and Shao L. 2016. Study on auxiliary testing method for mulberry silkworm cocoon sorting based on MATLAB. Journal of Silk, 53(3):32-36
陈浩, 杨峥, 刘霞, 邵玲. 2016.基于MATLAB的桑蚕茧选茧辅助检验方法的研究.丝绸, 53(3):32-36[DOI:10.3969/j.issn.1001-7003.2016.03.006]
Cope R K and Rockett P I. 2000. Efficacy of Gaussian smoothing in Canny edge detector. Electronics Letters, 36(19):1615-1617[DOI:10.1049/el:20001138]
Dai X J. 2010. A novel approach for the restoration of camera images of planar and curled document//Proceedings of the 20105th International Conference on Computer Science and Education. Hefei: IEEE: 1373-1376[ DOI:10.1109/ICCSE.2010.5593717 http://dx.doi.org/10.1109/ICCSE.2010.5593717 ]
Ding C, Tang L W, Cao L J, Shao X J and Deng S J. 2018. Geometric distortion correction for structured-light image of deep-hole inner-surface. Optics and Precision Engineering, 26(10):2555-2564
丁超, 唐力伟, 曹立军, 邵新杰, 邓士杰. 2018.深孔内表面结构光图像几何畸变校正.光学 精密工程, 26(10):2555-2564[DOI:10.3788/OPE.20182610.2555]
Fitzgibbon A, Pilu M and Fisher R B. 1999. Direct least square fitting of ellipses. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(5):476-480[DOI:10.1109/34.765658]
General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China and Standardization Administration of the People's Republic of China. 2015. GB/T 9111-2015 Methods of mulberry silkworm dried cocoons. Beijing:Standards Press of China
中华人民共和国国家质量监督检验检疫总局, 中国国家标准化管理委员会. 2015. GB/T 9111-2015桑蚕干茧试验方法.北京:中国标准出版社
Liu M C, Xu R H, Li F D, Song Z H, Yan Y F and Han S Q. 2018a. Algorithm and experiment of cocoon segmentation and location based on color and area feature. Transactions of the Chinese Society for Agricultural Machinery, 49(3):43-50
刘莫尘, 许荣浩, 李法德, 宋占华, 闫银发, 韩守强. 2018a.基于颜色与面积特征的方格蔟蚕茧分割定位算法与试验.农业机械学报, 49(3):43-50[DOI:10.6041/j.issn.1000-1298.2018.03.005]
Liu M C, Xu R H, Yan X, Yan Y F, Li F D and Liu S X. 2018b. Detection and elimination of yellow spotted cocoon in Mountage based on FCM algorithm and HSV color model. Transactions of the Chinese Society for Agricultural Machinery, 49(7):31-38
刘莫尘, 许荣浩, 闫筱, 闫银发, 李法德, 刘双喜. 2018b.基于FCM及HSV模型的方格蔟黄斑茧检测与剔除技术.农业机械学报, 49(7):31-38[DOI:10.6041/j.issn.1000-1298.2018.07.004]
Tang K M, Xie Q F, Yang M Y, Zhang H P and Zhu L J. 2014. Research progress on evaluation methods and new inspection technologies for silkworm cocoon quality. Science of Sericulture, 40(5):924-927
唐科梦, 谢启凡, 杨明英, 张海萍, 朱良均. 2014.蚕茧质量检验方法及检测新技术概述.蚕业科学, 40(5):924-927[DOI:10.13441/j.cnki.cykx.2014.05.025]
Wang J, Qiang J and Zhou M Z. 2017. Study of image acquisition method on cylinder surface for material evidence based on image stitching. Optical Technique, 43(1):43-49
汪军, 强俊, 周鸣争. 2017.基于图像拼接的柱体表面物证图像采集方法的研究.光学技术, 43(1):43-49[DOI:10.13741/j.cnki.11-1879/o4.2017. 01.009]
Wang W, He W P, Guo G F, Niu J B and Cao X Z. 2014. Restoration of distorted 2D barcode marked on arbitrary radius cylinder based on calibrated camera. Journal of Image andGraphics, 19(1):69-75
王伟, 何卫平, 郭改放, 牛晋波, 曹西征. 2014.基于标定的任意半径柱面上2维条形码畸变校正.中国图象图形学报, 19(1):69-75[DOI:10.11834/jig.20140109]
Wang Y L, Shen J X and Liao W H. 2011. Automatic fundus images mosaic based on SIFT feature. Journal of Image and Graphics, 16(4):654-659
王玉亮, 沈建新, 廖文和. 2011.基于SIFT特征的眼底图像自动拼接.中国图象图形学报, 16(4):654-659[DOI:10.11834/jig.20110414]
Wu X J and Guo Y X. 2015. An 360° panoramic imaging design method for cylindrical object. Acta Optica Sinica, 35(9):0923002.
吴晓军, 郭亚雪. 2015.一种圆柱物体360°全景成像装置设计方法.光学学报, 35(9):0923002[DOI:10.3788/AOS201535. 0923002]
Wu Z G, Wang M J and Wang Y Q. 2012. Image mosaic technique based on the information of edge//Proceedings of IEEE the 2012 Third International Conference on Digital Manufacturing and Automation. Guilin, China: IEEE: 482-484[ DOI:10.1109/ICDMA.2012.115 http://dx.doi.org/10.1109/ICDMA.2012.115 ]
Yao L J, Zhou G F, Ni Z J, Zhang P P and Zhu S W. 2015. Matching method for fruit surface image based on scale invariant feature transform algorithm. Transactions of the Chinese Society of Agricultural Engineering, 31(9):161-166
姚立健, 周高峰, 倪忠进, 张培培, 朱世威. 2015.基于尺度不变特征转换算子的水果表面图像拼接方法.农业工程学报, 31(9):161-166[DOI:10.11975/j.issn.1002-6819.2015.09.025]
Zhang Z. 2000. A flexible new technique for camera calibration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(11):1330-1334[DOI:10.1109/34.888718]
Zhao M Y, He R T and Tan Z Q. 2016. Design of automatic picking machine for sorting different quality silkworm cocoons based on checker-cardboard cocooning frame. Science of Sericulture, 42(1):105-110
赵明岩, 何如涛, 檀中强. 2016.用于纸板方格蔟不同品质蚕茧分选与自动采摘的机具设计.蚕业科学, 42(1):105-110[DOI:10.13441/j.cnki.cykx.2016.01.015]
Zhou P, Zhao C J, Wang J H, Zheng W G, Sun Z F and Wen Y X. 2010. Egg geometry calculations based on machine vision. Transactions of the Chinese Society for Agricultural Machinery, 41(5):168-171, 208
周平, 赵春江, 王纪华, 郑文刚, 孙忠富, 文友先. 2010.基于机器视觉的鸡蛋体积与表面积计算方法.农业机械学报, 41(5):168-171, 208[DOI:10.3969/j.issn.1000-1298.2010.05. 034]
Zhou Z Y, Liu X A and Yang D H. 2006. Application of machine vision in measurement of cocoon superficial area. Journal of Textile Research, 27(12):29-31
周志宇, 刘喜昂, 杨东鹤. 2006.机器视觉在蚕茧表面积测量中的应用.纺织学报, 27(12):29-31[DOI:10.13475/j.fzxb.2006.12.008]
相关作者
相关机构
京公网安备11010802024621