计算机工程与应用
計算機工程與應用
계산궤공정여응용
COMPUTER ENGINEERING AND APPLICATIONS
2013年
16期
188-191,231
,共5页
矩%重心%主轴%最小外接矩形%叶片长宽
矩%重心%主軸%最小外接矩形%葉片長寬
구%중심%주축%최소외접구형%협편장관
moment%barycenter%major axis%minimum enclosing rectangle%leaf blade length and width
叶片长宽的测量常采用旋转法,其在测量时需多次旋转叶片直至外接矩形面积最小为止,耗时较大;由于叶片形状各异,旋转法的测量准确性也不高。鉴于此,给出了运用矩测量叶片长宽的方法,用零阶矩和一阶矩求得叶片重心,通过一阶矩和二阶矩获得叶片的主轴方向,运用旋转矩阵得到叶片的最小外接矩形,将此矩形的长宽作为叶片的长宽。对122幅叶片图像进行实验,结果表明:矩的方法测量准确率是98.4%,而旋转法的准确率是37.7%。在测量过程中旋转法需多次旋转叶片,而矩的方法只需旋转两次,测量时间至少缩短了一半。总之,基于矩的方法准确性高、测量速度快。
葉片長寬的測量常採用鏇轉法,其在測量時需多次鏇轉葉片直至外接矩形麵積最小為止,耗時較大;由于葉片形狀各異,鏇轉法的測量準確性也不高。鑒于此,給齣瞭運用矩測量葉片長寬的方法,用零階矩和一階矩求得葉片重心,通過一階矩和二階矩穫得葉片的主軸方嚮,運用鏇轉矩陣得到葉片的最小外接矩形,將此矩形的長寬作為葉片的長寬。對122幅葉片圖像進行實驗,結果錶明:矩的方法測量準確率是98.4%,而鏇轉法的準確率是37.7%。在測量過程中鏇轉法需多次鏇轉葉片,而矩的方法隻需鏇轉兩次,測量時間至少縮短瞭一半。總之,基于矩的方法準確性高、測量速度快。
협편장관적측량상채용선전법,기재측량시수다차선전협편직지외접구형면적최소위지,모시교대;유우협편형상각이,선전법적측량준학성야불고。감우차,급출료운용구측량협편장관적방법,용령계구화일계구구득협편중심,통과일계구화이계구획득협편적주축방향,운용선전구진득도협편적최소외접구형,장차구형적장관작위협편적장관。대122폭협편도상진행실험,결과표명:구적방법측량준학솔시98.4%,이선전법적준학솔시37.7%。재측량과정중선전법수다차선전협편,이구적방법지수선전량차,측량시간지소축단료일반。총지,기우구적방법준학성고、측량속도쾌。
Generally, leaf blade length and width are measured by the rotation method, which has to rotate a leaf repeatedly until the area of its enclosing rectangle attains the minimum value. It is time consuming during measurement. Besides, the measure-ment accuracy of this method is not high as leaf blades are in different shapes. Aiming at the above two points, a measurement method of leaf blade length and width based on moment is given. The barycenter of a leaf blade is calculated by using zeroth order moment and first order moment. The orientation of the blade major axis is obtained by means of first order moment and second order moment. The rotation matrix is used to get the minimum enclosing rectangle of the blade and the length and width of this rectangle act as the blade’s. Experiments have been done on 122 blade images collected and the experimental results show that the measurement accuracy of the method mentioned in this paper is 98.4%while that of the rotation method is 37.7%. During the measurement, the rotation method has to rotate a blade multiple times while the method based on moment only does it twice. Therefore, measurement time of the latter decreases by half the time of the former at least. In a word, the method based on moment wins a high accuracy and speed.