An image algorithm to determine all the orientation lines of the targets in a crop image was proposed. The color image was converted into a gray image. The crops were separated from the backgrounds by K-means clustering. The orientation areas and orientation points were obtained by analyzing each horizon scan line in the binary image. The clustering function was defined according to the abscissa of orientation points on the two next horizon scan lines. The orientation lines were correctly detected by a passing a known point Hough transform. Test results showed that the algorithm was capable in accurately detecting different orientation lines. The algorithm required 0.12 s to determine all the orientation lines for a 640×480 pixel color image.
参考文献
相似文献
引证文献
引用本文
张红霞,张铁中,陈兵旗.基于模式识别的农田目标定位线检测[J].农业机械学报,2008,39(2):107-111.[J]. Transactions of the Chinese Society for Agricultural Machinery,2008,39(2):107-111.