่ฟ™ๆ˜ฏ็”จๆˆทๅœจ 2025-1-18 22:51 ไธบ https://www.mdpi.com/2077-0472/11/1/63 ไฟๅญ˜็š„ๅŒ่ฏญๅฟซ็…ง้กต้ข๏ผŒ็”ฑ ๆฒ‰ๆตธๅผ็ฟป่ฏ‘ ๆไพ›ๅŒ่ฏญๆ”ฏๆŒใ€‚ไบ†่งฃๅฆ‚ไฝ•ไฟๅญ˜๏ผŸ


 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
๏€ด ๏€ด ๏€ด
Column Width:
๏€ต ๏€ต ๏€ต
Background:
Article

Research on Measurement Method of Leaf Length and Width Based on Point Cloud

1
College of Information and Electrical Engineering, China Agricultural University, Qinghuadonglu No.17, Haidian District, Beijing 100083, China
ไฟกๆฏไธŽ็”ตๆฐ”ๅทฅ็จ‹ๅญฆ้™ข๏ผŒไธญๅ›ฝๅ†œไธšๅคงๅญฆ๏ผŒๅŒ—ไบฌๅธ‚ๆตทๆท€ๅŒบๆธ…ๅŽไธœ่ทฏ 17 ๅท๏ผŒ100083 ไธญๅ›ฝ
2
Engineering Practice Innovation Center, China Agricultural University, Qinghuadonglu No.17, Haidian District, Beijing 100083, China
ๅทฅ็จ‹ๅฎž่ทตๅˆ›ๆ–ฐไธญๅฟƒ๏ผŒไธญๅ›ฝๅ†œไธšๅคงๅญฆ๏ผŒๆธ…ๅŽๅคงๅญฆไธœ่ทฏ 17 ๅท๏ผŒๆตทๆท€ๅŒบ๏ผŒๅŒ—ไบฌ 100083๏ผŒไธญๅ›ฝ
*
Author to whom correspondence should be addressed.
ๆ”ถไฟกไบบไฝœ่€…
Agriculture 2021, 11(1), 63; https://doi.org/10.3390/agriculture11010063
Submission received: 1 December 2020 / Revised: 8 January 2021 / Accepted: 11 January 2021 / Published: 13 January 2021
ๆไบคๆ—ฅๆœŸ๏ผš2020 ๅนด 12 ๆœˆ 1 ๆ—ฅ / ไฟฎ่ฎขๆ—ฅๆœŸ๏ผš2021 ๅนด 1 ๆœˆ 8 ๆ—ฅ / ๆŽฅๅ—ๆ—ฅๆœŸ๏ผš2021 ๅนด 1 ๆœˆ 11 ๆ—ฅ / ๅ‘่กจๆ—ฅๆœŸ๏ผš2021 ๅนด 1 ๆœˆ 13 ๆ—ฅ

Abstract

Leaf is an important organ for photosynthesis and transpiration associated with the plantsโ€™ growth. Through the study of leaf phenotype, it the physiological characteristics produced by the interaction of the morphological parameters with the environment can be understood. In order to realize the assessment of the spatial morphology of leaves, a method based on three-dimensional stereo vision was introduced to extract the shape information, including the length and width of the leaves. Firstly, a depth sensor was used to collect the point cloud of plant leaves. Then, the leaf coordinate system was adjusted by principal component analysis to extract the region of interest; and compared with a cross-sectional method, the geodesic distance method, we proposed a method based on the cutting plane to obtain the intersecting line of the three-dimensional leaf model. Eggplant leaves were used to compare the accuracy of these methods in the measurement of a single leaf.
ๅถๅญๆ˜ฏๆค็‰ฉ็”Ÿ้•ฟไธญไธŽๅ…‰ๅˆไฝœ็”จๅ’Œ่’ธ่…พไฝœ็”จ็›ธๅ…ณ็š„้‡่ฆๅ™จๅฎ˜ใ€‚้€š่ฟ‡็ ”็ฉถๅถ็‰‡่กจๅž‹๏ผŒๅฏไปฅ็†่งฃ็”ฑๅฝขๆ€ๅ‚ๆ•ฐไธŽ็Žฏๅขƒ็›ธไบ’ไฝœ็”จไบง็”Ÿ็š„็”Ÿ็†็‰นๅพใ€‚ไธบไบ†ๅฎž็Žฐๅถ็‰‡็ฉบ้—ดๅฝขๆ€็š„่ฏ„ไผฐ๏ผŒๅผ•ๅ…ฅไบ†ไธ€็งๅŸบไบŽไธ‰็ปด็ซ‹ไฝ“่ง†่ง‰็š„ๆ–นๆณ•ๆฅๆๅ–ๅฝข็Šถไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌๅถ็‰‡็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆใ€‚้ฆ–ๅ…ˆ๏ผŒไฝฟ็”จๆทฑๅบฆไผ ๆ„Ÿๅ™จๆ”ถ้›†ๆค็‰ฉๅถ็‰‡็š„็‚นไบ‘ใ€‚็„ถๅŽ๏ผŒ้€š่ฟ‡ไธปๆˆๅˆ†ๅˆ†ๆž่ฐƒๆ•ดๅถ็‰‡ๅๆ ‡็ณปไปฅๆๅ–ๆ„Ÿๅ…ด่ถฃๅŒบๅŸŸ๏ผ›ๅนถไธŽๆจชๆˆช้ขๆณ•ใ€ๆต‹ๅœฐ็บฟ่ท็ฆปๆณ•็›ธๆฏ”๏ผŒๆˆ‘ไปฌๆๅ‡บไบ†ไธ€็งๅŸบไบŽๅˆ‡ๅ‰ฒๅนณ้ข็š„ๆ–นๆณ•ๆฅ่Žทๅพ—ไธ‰็ปดๅถ็‰‡ๆจกๅž‹็š„ไบค็บฟใ€‚ไฝฟ็”จ่Œ„ๅญๅถ็‰‡ๆฅๆฏ”่พƒ่ฟ™ไบ›ๆ–นๆณ•ๅœจๅ•ๅถๆต‹้‡ไธญ็š„ๅ‡†็กฎๆ€งใ€‚

1. Introduction

Leaf is the main organ of plants for photosynthesis and transpiration, and plant growth information is closely related to leaf parameters. Mastering the growth rule of plant leaves is of guiding significance for cultivation. Plant growth information is closely related to leaf parameters, which is of great significance for high efficiency and yield. Leaf parameters have a profound impact on activities such as plant growth and development, so scientifically determining leaf parameters is of great significance [1]. Leaf shape parameters such as leaf area, thickness, length, width, and leaf shape index are important indicators for evaluating the impact of plant environmental factors. With the rapid development of science and technology, automatic measurement technology has been widely used in life, as well as agriculture [2]. Compared with the manual measurement of leaf parameter measurement technology, automatic measurement has the advantages of fast speed, high precision and real-time performance, which greatly improves the efficiency of leaf parameters measurement.
Currently, leaf length and width are important shape parameters, which can be used in tasks such as leaf area estimation and automatic recognition. High-performance technology has been used to measure the linear distance between leaf petiole and tip [3,4,5,6], the shortest distance between leaf petiole and tip [7,8], or extraction skeleton between the petiole and tip [9,10]. Grid and scanning methods are commonly used for leaf measurement, which are simple to implement, but require some manpower and time [11]. The scanner method is to image plant leaves [12], and then use Photoshop, ArcGIS or other softwares to count the pixels and determine the leaf information of the plant. Measurement based on image processing has the advantages of simple and fast operation [13,14,15]. For leaf measurement, the common method is to extract the minimum enclosing rectangle [16,17]. The minimum enclosing rectangles and the aspect rations of leaves were obtained by Hotelling transform [18] or rotation matrix [19]. For improvement of the minimum bounding box, Xiang et al. [20] rotated and moved main axis of leaf image, compared the size of the area surrounded by the boundary. Guo et al. [21] applied poly-line fitting to detect the media axis, and fitting the length of the line as the leaf length measurement.
With the rapid development of 3D technology, the research of three-dimensional measurement technology has been applied to the automatic reconstruction of animal body size, such as pig [22,23], sheep [24], and cattle [25]. The measurement of human body size plays an important role and 3D scanning technology has been used to automatically measure body size in a non-contact way [26], for example, Liu et al. [27] and Tan et al. [28] obtained the size of a human body via random forest regression analysis of geodesic distances to extract the feature points and lines. Zhang et al. [29] proposed a framework for pose estimation from range images by geodesic distance. 3D technology is also used in earthwork [30], water conservancy [31] and other complex terrain problems, to achieve the reconstruction and measurement. In the current study, image analysis was used to quantify crop characteristics, which are critical for the marketability of new varieties [32,33]. Zhou et al. [34] obtained three-dimensional structural data of lodged maize using an unmanned aerial vehicle. Guo [35], Gongal [36] and Yang et al. [37] reconstructed apple tree canopy and extracted the apple diameter based on a 3D camera. Using a 3D point cloud to measure plant leaf information has become an emerging area of scientific research. In plant growth monitoring, accurate and nondestructive measurement of plant structure parameters is very important, Zhang et al. [38] developed a multi-camera photography system and measured six variables of 3D nursery paprika plantsโ€™ models. Feng et al. [39] based on photometric stereo vision determined the normal vectorsโ€™ distribution and fitted the leafโ€™s space plane. Zhang et al. [40] scanned the plant vertically with the laser sheet and obtained point cloud structure of the sample. Itakura et al. [41] segmented leaves in the top-view images by distance transform and expanded the seed region by watershed algorithm with the 3D information. Hu et al. [42] proposed a 3D point cloud filtering method for leaves based on manifold distance and normal estimation and pointed out that the distance between two points cannot reflect all of the manifold similarities well, while the geodesic curve better reflects the similarities between these two points. It can be seen that the cross-sectional method and geodesic distance are the most commonly used methods in 3D length measurement. Leaf is a research object with spatial attributes, so we compare the cross-section method and geodesic distance method to measure the length and width of leaf on three-dimensional model. The method is improved on the basis of the cross-section method, so that it can quickly obtain the intersection line.
้š็€ 3D ๆŠ€ๆœฏ็š„ๅฟซ้€Ÿๅ‘ๅฑ•๏ผŒไธ‰็ปดๆต‹้‡ๆŠ€ๆœฏ็š„็ ”็ฉถๅทฒๅบ”็”จไบŽๅŠจ็‰ฉไฝ“ๅž‹็š„่‡ชๅŠจ้‡ๅปบ๏ผŒๅฆ‚็Œช[22, 23]ใ€็พŠ[24]ๅ’Œ็‰›[25]ใ€‚ไบบไฝ“ๅฐบๅฏธ็š„ๆต‹้‡ๅ‘ๆŒฅ็€้‡่ฆไฝœ็”จ๏ผŒ3D ๆ‰ซๆๆŠ€ๆœฏๅทฒ่ขซ็”จไบŽ้žๆŽฅ่งฆๅผ่‡ชๅŠจๆต‹้‡ไบบไฝ“ๅฐบๅฏธ[26]๏ผŒไพ‹ๅฆ‚๏ผŒๅˆ˜็ญ‰[27]ๅ’Œ่ฐญ็ญ‰[28]้€š่ฟ‡ๅœฐ็†่ท็ฆป็š„้šๆœบๆฃฎๆž—ๅ›žๅฝ’ๅˆ†ๆžๆๅ–็‰นๅพ็‚นๅ’Œ็บฟ๏ผŒ่Žทๅพ—ไบ†ไบบไฝ“ๅฐบๅฏธใ€‚ๅผ ็ญ‰[29]ๆๅ‡บไบ†ไธ€็งๅŸบไบŽๆต‹ๅœฐ่ท็ฆป็š„ๅงฟๆ€ไผฐ่ฎกๆก†ๆžถใ€‚3D ๆŠ€ๆœฏ่ฟ˜ๅบ”็”จไบŽๅœŸๆ–นๅทฅ็จ‹[30]ใ€ๆฐดๅˆฉ[31]ๅ’Œๅ…ถไป–ๅคๆ‚ๅœฐๅฝข้—ฎ้ข˜๏ผŒไปฅๅฎž็Žฐ้‡ๅปบๅ’Œๆต‹้‡ใ€‚ๅœจๅฝ“ๅ‰็ ”็ฉถไธญ๏ผŒๅ›พๅƒๅˆ†ๆž่ขซ็”จไบŽ้‡ๅŒ–ไฝœ็‰ฉ็‰นๅพ๏ผŒ่ฟ™ๅฏนไบŽๆ–ฐๅ“็ง็š„ๅธ‚ๅœบๅŒ–่‡ณๅ…ณ้‡่ฆ[32, 33]ใ€‚ๅ‘จ็ญ‰[34]ไฝฟ็”จๆ— ไบบๆœบ่Žทๅพ—ไบ†ๅ€’ไผ็Ž‰็ฑณ็š„ไธ‰็ปด็ป“ๆž„ๆ•ฐๆฎใ€‚้ƒญ[35]ใ€่ดกๅŠ ๅฐ”[36]ๅ’Œๆจ็ญ‰ใ€‚ [ 37] ้‡ๅปบ่‹นๆžœๆ ‘ๆ ‘ๅ† ๅนถๅŸบไบŽ 3D ็›ธๆœบๆๅ–่‹นๆžœ็›ดๅพ„ใ€‚ไฝฟ็”จ 3D ็‚นไบ‘ๆต‹้‡ๆค็‰ฉๅถ็‰‡ไฟกๆฏๅทฒๆˆไธบ็ง‘ๅญฆ็ ”็ฉถ็š„ๅดญๆ–ฐ้ข†ๅŸŸใ€‚ๅœจๆค็‰ฉ็”Ÿ้•ฟ็›‘ๆต‹ไธญ๏ผŒๅ‡†็กฎไธ”้ž็ ดๅๆ€ง็š„ๆต‹้‡ๆค็‰ฉ็ป“ๆž„ๅ‚ๆ•ฐ้žๅธธ้‡่ฆ๏ผŒๅผ ็ญ‰[ 38]ๅผ€ๅ‘ไบ†ไธ€็งๅคšๆ‘„ๅƒๅคดๆ‘„ๅฝฑ็ณป็ปŸ๏ผŒๅนถๆต‹้‡ไบ† 3D ่‹—ๅœƒ่พฃๆค’ๆค็‰ฉๆจกๅž‹็š„ๅ…ญไธชๅ˜้‡ใ€‚ๅ†ฏ็ญ‰[ 39]ๅŸบไบŽๅ…‰ๅบฆ็ซ‹ไฝ“่ง†่ง‰็กฎๅฎšไบ†ๆณ•ๅ‘้‡็š„ๅˆ†ๅธƒๅนถๆ‹Ÿๅˆไบ†ๅถ็‰‡็š„็ฉบ้—ดๅนณ้ขใ€‚ๅผ ็ญ‰[ 40]็”จๆฟ€ๅ…‰็‰‡ๅž‚็›ดๆ‰ซๆๆค็‰ฉๅนถ่Žทๅพ—ไบ†ๆ ทๅ“็š„็‚นไบ‘็ป“ๆž„ใ€‚ๆฟไป“็ญ‰[ 41]้€š่ฟ‡่ท็ฆปๅ˜ๆขๅœจไฟฏ่ง†ๅ›พๅ›พๅƒไธญๅˆ†ๅ‰ฒๅถ็‰‡๏ผŒๅนถๅˆฉ็”จ 3D ไฟกๆฏ้€š่ฟ‡ๆตๅŸŸ็ฎ—ๆณ•ๆ‰ฉๅฑ•็งๅญๅŒบๅŸŸใ€‚่ƒก็ญ‰[ 42]ๆๅ‡บไบ†ไธ€็งๅŸบไบŽๆตๅฝข่ท็ฆปๅ’Œๆณ•ๅ‘ไผฐ่ฎก็š„ๅถ็‰‡ 3D ็‚นไบ‘ๆปคๆณขๆ–นๆณ•๏ผŒๅนถๆŒ‡ๅ‡บไธค็‚นไน‹้—ด็š„่ท็ฆปไธ่ƒฝๅพˆๅฅฝๅœฐๅๆ˜ ๆ‰€ๆœ‰ๆตๅฝข็›ธไผผๆ€ง๏ผŒ่€Œๆต‹ๅœฐ็บฟๆ›ฒ็บฟๆ›ดๅฅฝๅœฐๅๆ˜ ไบ†่ฟ™ไธค็‚นไน‹้—ด็š„็›ธไผผๆ€งใ€‚ ๅฏไปฅ็œ‹ๅ‡บ๏ผŒๆจชๆ–ญ้ขๆณ•ๅ’Œๅคงๅœฐๆต‹้‡่ท็ฆปๆณ•ๆ˜ฏไธ‰็ปด้•ฟๅบฆๆต‹้‡ไธญๆœ€ๅธธ็”จ็š„ๆ–นๆณ•ใ€‚ๅถ็‰‡ๆ˜ฏไธ€ไธชๅ…ทๆœ‰็ฉบ้—ดๅฑžๆ€ง็š„็ง‘็ ”ๅฏน่ฑก๏ผŒๅ› ๆญคๆˆ‘ไปฌๆฏ”่พƒๆจชๆ–ญ้ขๆณ•ๅ’Œๅคงๅœฐๆต‹้‡่ท็ฆปๆณ•ๆฅๆต‹้‡ๅถ็‰‡ๅœจไธ‰็ปดๆจกๅž‹ไธŠ็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆใ€‚่ฏฅๆ–นๆณ•ๅœจๆจชๆ–ญ้ขๆณ•็š„ๅŸบ็ก€ไธŠ่ฟ›่กŒไบ†ๆ”น่ฟ›๏ผŒไปฅไพฟๅฟซ้€Ÿ่Žทๅพ—ไบค็บฟใ€‚

2. Materials and Methods

2.1. Acquisition the RoI of Leaf Point Cloud Model

Kinect2.0 was used to photograph eggplant and get the corresponding point cloud to obtain complete scene information. The scene information contains the entire plant, and the research object is the length and width of a leaf, so a complete leaf point cloud without occlusion was manually selected as the experimental object. The length measurement did not include the length of the petiole, so the petiole was removed manually to ensure the accuracy of measurement. Here, eggplant leaves were selected as the research object to prove the effectiveness of the measurement of leaf length and width. The extracted leaf point cloud information contained noise, so the filtering method [43] and smoothing algorithm [44] provided by Point Cloud Library were used to process the point cloud in Figure 1.
Kinect2.0 ็”จไบŽๆ‹ๆ‘„่Œ„ๅญๅนถ่Žทๅ–็›ธๅบ”็š„็‚นไบ‘ไปฅ่Žทๅ–ๅฎŒๆ•ด็š„ๅœบๆ™ฏไฟกๆฏใ€‚ๅœบๆ™ฏไฟกๆฏๅŒ…ๅซๆ•ดไธชๆค็‰ฉ๏ผŒ็ ”็ฉถๅฏน่ฑกๆ˜ฏๅถ็‰‡็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆ๏ผŒๅ› ๆญคๆ‰‹ๅŠจ้€‰ๅ–ไบ†ๆ— ้ฎๆŒก็š„ๅฎŒๆ•ดๅถ็‰‡็‚นไบ‘ไฝœไธบๅฎž้ชŒๅฏน่ฑกใ€‚้•ฟๅบฆๆต‹้‡ไธๅŒ…ๆ‹ฌๅถๆŸ„้•ฟๅบฆ๏ผŒๅ› ๆญคๆ‰‹ๅŠจ็งป้™คไบ†ๅถๆŸ„ไปฅ็กฎไฟๆต‹้‡็š„ๅ‡†็กฎๆ€งใ€‚ๅœจๆญค๏ผŒ้€‰ๆ‹ฉ่Œ„ๅญๅถ็‰‡ไฝœไธบ็ ”็ฉถๅฏน่ฑกไปฅ่ฏๆ˜Žๆต‹้‡ๅถ็‰‡้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๆœ‰ๆ•ˆๆ€งใ€‚ๆๅ–็š„ๅถ็‰‡็‚นไบ‘ไฟกๆฏๅŒ…ๅซๅ™ชๅฃฐ๏ผŒๅ› ๆญคไฝฟ็”จไบ†็‚นไบ‘ๅบ“ๆไพ›็š„[43]ๆปคๆณขๆ–นๆณ•ๅ’Œ[44]ๅนณๆป‘็ฎ—ๆณ•ๅฏนๅ›พ 1 ไธญ็š„็‚นไบ‘่ฟ›่กŒๅค„็†ใ€‚
Figure 1. Operation flowchart of the system.
When collecting data, the distance between kinect2.0 and the shooting scene was less than 1.1 m, which can increase the density of the point cloud on the leaf. The useless part of the scene point cloud was removed, and information on only one leaf was obtained, which can ensure the integrity of the leaf information. Since the focus of this paper is to compare the geodesic distance method, cross-section method and the improved method to measure the individual leaf on the plant, there is no reconstruction of the plant point cloud.
ๅฝ“ๆ”ถ้›†ๆ•ฐๆฎๆ—ถ๏ผŒKinect2.0 ไธŽๆ‹ๆ‘„ๅœบๆ™ฏ็š„่ท็ฆปๅฐไบŽ 1.1 ็ฑณ๏ผŒ่ฟ™ๅฏไปฅๅขžๅŠ ๅถ็‰‡ไธŠ็‚นไบ‘็š„ๅฏ†ๅบฆใ€‚็งป้™คไบ†ๅœบๆ™ฏ็‚นไบ‘็š„ๆ— ็”จ้ƒจๅˆ†๏ผŒไป…่Žทๅพ—ไบ†ๅ•็‰‡ๅถ็‰‡็š„ไฟกๆฏ๏ผŒ่ฟ™ๅฏไปฅ็กฎไฟๅถ็‰‡ไฟกๆฏ็š„ๅฎŒๆ•ดๆ€งใ€‚็”ฑไบŽๆœฌๆ–‡็š„้‡็‚นๆ˜ฏๅฏนๆฏ”ๆต‹้‡ๆค็‰ฉไธŠๅ•็‰‡ๅถ็‰‡็š„ๆต‹ๅœฐ็บฟ่ท็ฆปๆณ•ใ€ๆจชๆˆช้ขๆณ•ๅ’Œๆ”น่ฟ›ๆ–นๆณ•๏ผŒๅ› ๆญคๆฒกๆœ‰้‡ๅปบๆค็‰ฉ็‚นไบ‘ใ€‚
The point cloud network of each leaf is defined as P, including a series of three-dimensional points as nodes, P={P1,P2โ€ฆPn}. The main directions (x,y,z) of the original plant point cloud obtained by the 3D camera are arbitrary, and the key points of the measurement cannot be obtained automatically. In this paper, in order to achieve unified and automatic key points, the direction of the leaf was normalized, and two key points in the width direction and the bottom of the key point in the length direction were obtained automatically. Principal component analysis (PCA) is a method of extracting main feature pairs, which can analyze the main influencing factors from multiple dimensions. The PCA algorithm was used to get the main axis of the point cloud data, on which the variance of the data distribution was the largest. The point cloud data were, respectively, projected into the new coordinate system formed by these three axes. It is mainly used for dimensionality reduction and extraction of the main feature components of the data [45]. PCA is to sequentially find a set of mutually orthogonal coordinate axes from the original space. The generation of new coordinate axes was closely related to the original point cloud data of the leaf. Among them, the main axis selection was the direction with the largest variance in the original data. The secondary main coordinate axis was selected to maximize the variance in the plane orthogonal to the first coordinate axis. The tertiary main axis had the largest variance in the plane orthogonal to the first and second axes. The realization method of PCA is as follows: Firstly, find the center of the point cloud. For the input point set P, the number of point clouds is n, then the center point Pc is Equation (1),
ๆฏไธชๅถ็‰‡็š„็‚นไบ‘็ฝ‘็ปœๅฎšไน‰ไธบ P๏ผŒๅŒ…ๆ‹ฌไธ€็ณปๅˆ—ไธ‰็ปด็‚นไฝœไธบ่Š‚็‚น๏ผŒ P={P1,P2โ€ฆPn} ใ€‚้€š่ฟ‡ 3D ็›ธๆœบ่Žทๅพ—็š„ๅŽŸๅง‹ๆค็‰ฉ็‚นไบ‘็š„ไธปๆ–นๅ‘ (x,y,z) ๆ˜ฏไปปๆ„็š„๏ผŒๆต‹้‡็š„ๅ…ณ้”ฎ็‚นๆ— ๆณ•่‡ชๅŠจ่Žทๅพ—ใ€‚ๅœจๆœฌๆ–‡ไธญ๏ผŒไธบไบ†ๅฎž็Žฐ็ปŸไธ€ๅ’Œ่‡ชๅŠจ็š„ๅ…ณ้”ฎ็‚น๏ผŒๅถ็‰‡็š„ๆ–นๅ‘่ขซๅฝ’ไธ€ๅŒ–๏ผŒๅนถๅœจๅฎฝๅบฆๆ–นๅ‘ๅ’Œ้•ฟๅบฆๆ–นๅ‘็š„ๅ…ณ้”ฎ็‚นๅบ•้ƒจ่‡ชๅŠจ่Žทๅพ—ไบ†ไธคไธชๅ…ณ้”ฎ็‚นใ€‚ไธปๆˆๅˆ†ๅˆ†ๆž๏ผˆPCA๏ผ‰ๆ˜ฏไธ€็งๆๅ–ไธป่ฆ็‰นๅพๅฏน็š„ๆ–นๆณ•๏ผŒๅฏไปฅไปŽๅคšไธช็ปดๅบฆๅˆ†ๆžไธป่ฆๅฝฑๅ“ๅ› ็ด ใ€‚PCA ็ฎ—ๆณ•่ขซ็”จๆฅ่Žทๅ–็‚นไบ‘ๆ•ฐๆฎ็š„ไธป่ฝด๏ผŒๅœจๆญค่ฝดไธŠๆ•ฐๆฎๅˆ†ๅธƒ็š„ๆ–นๅทฎๆœ€ๅคงใ€‚็‚นไบ‘ๆ•ฐๆฎๅˆ†ๅˆซ่ขซๆŠ•ๅฝฑๅˆฐ็”ฑ่ฟ™ไธ‰ไธช่ฝดๅฝขๆˆ็š„ๆ–ฐๅๆ ‡็ณปไธญใ€‚ๅฎƒไธป่ฆ็”จไบŽ้™็ปดๅ’Œๆๅ–ๆ•ฐๆฎ็š„ไธป่ฆ็‰นๅพๆˆๅˆ†[45]ใ€‚PCA ๆ˜ฏไพๆฌกไปŽๅŽŸๅง‹็ฉบ้—ดไธญๆ‰พๅˆฐไธ€ไธช็›ธไบ’ๆญฃไบค็š„ๅๆ ‡่ฝด้›†ๅˆใ€‚ ๆ–ฐๅๆ ‡่ฝด็š„็”ŸๆˆไธŽๅถๅญ็š„ๅŽŸๅง‹็‚นไบ‘ๆ•ฐๆฎๅฏ†ๅˆ‡็›ธๅ…ณใ€‚ๅ…ถไธญ๏ผŒไธป่ฝด้€‰ๆ‹ฉๆ˜ฏๅŽŸๅง‹ๆ•ฐๆฎไธญๅ˜ๅผ‚ๆ€งๆœ€ๅคง็š„ๆ–นๅ‘ใ€‚ๆฌกไธปๅๆ ‡่ฝด้€‰ๆ‹ฉๆ˜ฏไธบไบ†ๆœ€ๅคงๅŒ–ไธŽ็ฌฌไธ€ๅๆ ‡่ฝดๅž‚็›ด็š„ๅนณ้ขไธŠ็š„ๅ˜ๅผ‚ๆ€งใ€‚็ฌฌไธ‰ไธป่ฝดๅœจ็ฌฌไธ€ๅ’Œ็ฌฌไบŒ่ฝดๅž‚็›ด็š„ๅนณ้ขไธŠๅ…ทๆœ‰ๆœ€ๅคง็š„ๅ˜ๅผ‚ๆ€งใ€‚ไธปๆˆๅˆ†ๅˆ†ๆž๏ผˆPCA๏ผ‰็š„ๅฎž็Žฐๆ–นๆณ•ๅฆ‚ไธ‹๏ผš้ฆ–ๅ…ˆ๏ผŒๆ‰พๅˆฐ็‚นไบ‘็š„ไธญๅฟƒใ€‚ๅฏนไบŽ่พ“ๅ…ฅ็‚น้›† P๏ผŒ็‚นไบ‘ๆ•ฐ้‡ไธบ n๏ผŒๅˆ™ไธญๅฟƒ็‚น Pc ไธบๆ–น็จ‹๏ผˆ1๏ผ‰
Pcยฏ=1nโˆ‘i=1nPi
The covariance matrix Cp can be obtained by Pcยฏ in Equation (2) [46],
ๅๆ–นๅทฎ็Ÿฉ้˜ต Cp ๅฏไปฅ้€š่ฟ‡ๆ–น็จ‹(2) Pcยฏ ่Žทๅพ—[46]
Cp=1nโˆ‘i=1n(Piโˆ’Pcยฏ)(Piโˆ’Pcยฏ)T
Secondly, calculate eigenvectors of the covariance matrix Cp by singular value decomposition [47]. Since the eigenvectors of the matrix Cp are perpendicular to each other and can be used as the direction axis of the bounding box [48]. Project the closed aggregate vertices to the axes to find the projection interval of each axis. The greater the variance, the projection distribution of the point cloud on this axis is more scattered and the projection interval on the axis is longer.
ๅ…ถๆฌก๏ผŒ้€š่ฟ‡ๅฅ‡ๅผ‚ๅ€ผๅˆ†่งฃ[47]่ฎก็ฎ—ๅๆ–นๅทฎ็Ÿฉ้˜ต Cp ็š„็‰นๅพๅ‘้‡ใ€‚็”ฑไบŽ็Ÿฉ้˜ต Cp ็š„็‰นๅพๅ‘้‡ๅฝผๆญคๅž‚็›ด๏ผŒๅฏไปฅ็”จไฝœ่พน็•Œๆก†็š„ๆ–นๅ‘่ฝด[48]ใ€‚ๅฐ†ๅฐ้—ญ่šๅˆ้กถ็‚นๆŠ•ๅฝฑๅˆฐ่ฝดไธŠ๏ผŒไปฅๆ‰พๅˆฐๆฏไธช่ฝด็š„ๆŠ•ๅฝฑๅŒบ้—ดใ€‚ๆ–นๅทฎ่ถŠๅคง๏ผŒ็‚นไบ‘ๅœจๆญค่ฝดไธŠ็š„ๆŠ•ๅฝฑๅˆ†ๅธƒ่ถŠๅˆ†ๆ•ฃ๏ผŒ่ฝดไธŠ็š„ๆŠ•ๅฝฑๅŒบ้—ด่ถŠ้•ฟใ€‚
Assuming that the distance of leaf length is greater than leaf width, PCA was used to determine the main diameter axis of the leaf (u,v,w), u is the axis of leaf length, v is the axis of leaf width, and w is the axis of thickness. The bounding box of the leaf is made based on the (u,v,w) coordinate system, and the points tangent to the bounding box in the u and v directions are the key points required.
ๅ‡่ฎพๅถ้•ฟ่ท็ฆปๅคงไบŽๅถๅฎฝ๏ผŒไฝฟ็”จไธปๆˆๅˆ†ๅˆ†ๆž๏ผˆPCA๏ผ‰็กฎๅฎšๅถ็‰‡็š„ไธป็›ดๅพ„่ฝด (u,v,w) ๏ผŒu ไธบๅถ้•ฟ่ฝด๏ผŒv ไธบๅถๅฎฝ่ฝด๏ผŒw ไธบๅŽšๅบฆ่ฝดใ€‚ๅถ็‰‡็š„่พน็•Œๆก†ๅŸบไบŽ (u,v,w) ๅๆ ‡็ณปๆž„ๅปบ๏ผŒu ๅ’Œ v ๆ–นๅ‘ไธŠไธŽ่พน็•Œๆก†็›ธๅˆ‡็š„็‚นไธบๆ‰€้œ€็š„ๅ…ณ้”ฎ็‚นใ€‚
After obtaining the coordinate system, the intersection points of bounding box and leaf point cloud are extracted, which represent the maximum value of leaf extension and as the key points of measuring length and width. Figure 2a represents the coordinate system of the original point cloud, where the red straight line is the x axis, green line is the y axis, and blue line is the z axis; Figure 2b represents the coordinate system of point cloud processed by PCA, where the red straight line is the u axis, green line is the v axis, and blue line is the w axis. Assuming leaf length is greater than leaf width, u is the main axis, v is the secondary main axis, and w is the tertiary main axis. The yellow border of the 3D leaf model in Figure 2 is obtained by the bounding box method. The points intersected with the bounding box in v axis are measuring points of the leaf width, named pwend, pwstart. The point where the u axis of the bounding box intersects the bottom of the leaf is plend, while the point on the other side of leaf length cannot be directly used as the point of the leaf tip. Since eggplant petiole is located in the concave surface of the point cloud, the point where the bounding box intersects with the u axis is not the petiole, so the point plstart needs to be selected manually.
ๅœจ่Žทๅพ—ๅๆ ‡็ณปๅŽ๏ผŒๆๅ–ไบ†่พน็•Œๆก†ๅ’Œๅถ็‚นไบ‘็š„ไบค็‚น๏ผŒ่ฟ™ไบ›็‚นไปฃ่กจๅถๆ‰ฉๅฑ•็š„ๆœ€ๅคงๅ€ผ๏ผŒๅนถไฝœไธบๆต‹้‡้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๅ…ณ้”ฎ็‚นใ€‚ๅ›พ 2a ่กจ็คบๅŽŸๅง‹็‚นไบ‘็š„ๅๆ ‡็ณป๏ผŒๅ…ถไธญ็บข่‰ฒ็›ด็บฟๆ˜ฏ x ่ฝด๏ผŒ็ปฟ่‰ฒ็บฟๆ˜ฏ y ่ฝด๏ผŒ่“่‰ฒ็บฟๆ˜ฏ z ่ฝด๏ผ›ๅ›พ 2b ่กจ็คบ็ป่ฟ‡ PCA ๅค„็†ๅŽ็š„็‚นไบ‘ๅๆ ‡็ณป๏ผŒๅ…ถไธญ็บข่‰ฒ็›ด็บฟๆ˜ฏ u ่ฝด๏ผŒ็ปฟ่‰ฒ็บฟๆ˜ฏ v ่ฝด๏ผŒ่“่‰ฒ็บฟๆ˜ฏ w ่ฝดใ€‚ๅ‡่ฎพๅถ้•ฟๅคงไบŽๅถๅฎฝ๏ผŒu ไธบไธป่ฝด๏ผŒv ไธบๆฌกไธป่ฝด๏ผŒw ไธบ็ฌฌไธ‰ไธป่ฝดใ€‚ๅ›พ 2 ไธญ 3D ๅถๆจกๅž‹็š„้ป„่‰ฒ่พน็•Œๆ˜ฏ้€š่ฟ‡่พน็•Œๆก†ๆ–นๆณ•่Žทๅพ—็š„ใ€‚ไธŽ่พน็•Œๆก†ๅœจ v ่ฝด็›ธไบค็š„็‚นไธบๅถๅฎฝ็š„ๆต‹้‡็‚น๏ผŒๅ‘ฝๅไธบ pwend ๏ผŒ pwstart ใ€‚่พน็•Œๆก†็š„ u ่ฝดไธŽๅถๅบ•็›ธไบค็š„็‚นไธบ plend ๏ผŒ่€Œๅถ้•ฟๅฆไธ€ไพง็š„็‚นไธ่ƒฝ็›ดๆŽฅ็”จไฝœๅถๅฐ–็š„็‚นใ€‚ ็”ฑไบŽ่Œ„ๅญๅถๆŸ„ไฝไบŽ็‚นไบ‘็š„ๅ‡น้ข๏ผŒๅ› ๆญคๅŒ…ๅ›ด็›’ไธŽ u ่ฝด็›ธไบค็š„็‚นไธๆ˜ฏๅถๆŸ„๏ผŒๆ‰€ไปฅ้œ€่ฆๆ‰‹ๅŠจ้€‰ๆ‹ฉ plstart ็‚นใ€‚
Figure 2. Coordinate system of leaf point cloud. (a) Original coordinate system of point cloud. (b) Processed coordinate system of point cloud.
ๅ›พ 2. ๅถ็‚นไบ‘ๅๆ ‡็ณปใ€‚๏ผˆa๏ผ‰็‚นไบ‘ๅŽŸๅง‹ๅๆ ‡็ณปใ€‚๏ผˆb๏ผ‰็‚นไบ‘ๅค„็†ๅŽ็š„ๅๆ ‡็ณปใ€‚
In Figure 3a, the original point cloud is projected onto the (x,y,z) coordinate system, and Figure 3b the reconstructed point cloud is projected onto the (u,v,w) coordinate system. The PCA algorithm is used to process the point cloud, and the elements are mapped to the main coordinate axis, secondary main coordinate axis, and tertiary main coordinate axis. The coordinate axis of the reconstructed point cloud has regularity, which is related to the decreasing projection density of the leaf length, width, and thickness. Therefore, the reconstructed main coordinate axis u represents the length of the leaf, the secondary main coordinate axis v represents the width, and the tertiary main coordinate axis w represents the thickness.
ๅœจๅ›พ 3a ไธญ๏ผŒๅŽŸๅง‹็‚นไบ‘่ขซๆŠ•ๅฝฑๅˆฐ (x,y,z) ๅๆ ‡็ณปไธญ๏ผŒๅ›พ 3b ไธญ้‡ๅปบ็š„็‚นไบ‘่ขซๆŠ•ๅฝฑๅˆฐ (u,v,w) ๅๆ ‡็ณปไธญใ€‚ไฝฟ็”จ PCA ็ฎ—ๆณ•ๅค„็†็‚นไบ‘๏ผŒๅนถๅฐ†ๅ…ƒ็ด ๆ˜ ๅฐ„ๅˆฐไธปๅๆ ‡่ฝดใ€ๆฌกไธปๅๆ ‡่ฝดๅ’Œไธ‰็บงไธปๅๆ ‡่ฝดใ€‚้‡ๅปบ็‚นไบ‘็š„ๅๆ ‡่ฝดๅ…ทๆœ‰่ง„ๅพ‹ๆ€ง๏ผŒ่ฟ™ไธŽๅถ็‰‡้•ฟๅบฆใ€ๅฎฝๅบฆๅ’ŒๅŽšๅบฆ็š„ๆŠ•ๅฝฑๅฏ†ๅบฆ้™ไฝŽๆœ‰ๅ…ณใ€‚ๅ› ๆญค๏ผŒ้‡ๅปบ็š„ไธปๅๆ ‡่ฝด u ไปฃ่กจๅถ็‰‡้•ฟๅบฆ๏ผŒๆฌกไธปๅๆ ‡่ฝด v ไปฃ่กจๅฎฝๅบฆ๏ผŒไธ‰็บงไธปๅๆ ‡่ฝด w ไปฃ่กจๅŽšๅบฆใ€‚
Figure 3. Projection of point cloud data onto the coordinate system. (a) Distribution map of the point cloud in the original coordinate system (x,y,z). (b) Distribution map of the point cloud in the reconstructed coordinate system (u,v,w).
ๅ›พ 3. ็‚นไบ‘ๆ•ฐๆฎๅœจๅๆ ‡็ณปไธŠ็š„ๆŠ•ๅฝฑใ€‚๏ผˆa๏ผ‰ๅŽŸๅง‹ๅๆ ‡็ณปไธ‹็‚นไบ‘็š„ๅˆ†ๅธƒๅ›พ (x,y,z) ใ€‚๏ผˆb๏ผ‰้‡ๅปบๅๆ ‡็ณปไธ‹็‚นไบ‘็š„ๅˆ†ๅธƒๅ›พ (u,v,w) ใ€‚
Algorithm 1 used the PCA algorithm to reconstruct the coordinate system (u,v,w) for obtaining the range of interest (RoI) of leaf and the key points of length and width.
็ฎ—ๆณ• 1 ไฝฟ็”จไบ† PCA ็ฎ—ๆณ•้‡ๆž„ๅๆ ‡็ณป็ปŸ (u,v,w) ๏ผŒไปฅ่Žทๅ–ๅถๅญ็š„ๆ„Ÿๅ…ด่ถฃๅŒบๅŸŸ๏ผˆRoI๏ผ‰ไปฅๅŠ้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๅ…ณ้”ฎ็‚นใ€‚
Algorithm 1 The algorithm of obtaining the measurement points of length and width.
็ฎ—ๆณ• 1 ่Žทๅ–้•ฟๅบฆๅ’Œๅฎฝๅบฆๆต‹้‡็‚น็š„็ฎ—ๆณ•ใ€‚
Require:P={P1,P2โ€ฆPn},Pi=(xi,yi,zi)TโˆˆR,i=1,2โ€ฆn
    for i = 1:n do
          Calculate Pcยฏ by Equation (1)
    end for
    Calculate covariance matrix Cp by Equation (2)
    Calculate eigenvalues and eigenvectors of Cp, and express eigenvectors as the coordinate system (u,v,w),
    Calculate the minimum bounding box for the leaf model in the coordinate system (u,v,w),
    Define the reconstructed point cloud as p={p1,p2โ€ฆpn}(pi=(ui,vi,wi),i=(1,2โ€ฆn)),
    Define the intersection point of the leaf model and the bounding box in v direction as pwstart, pwend,
    Define the intersection point of the leaf model and the bounding box in u direction as plend,
    Define the intersection point of the leaf model in u direction as plstart manually.
Ensure: plstart,plend,pwstart,pwendโˆˆpi(i=1,2โ€ฆn)

2.2. Measurement the Length and Width of Leaf

The commonly used three-dimensional length measurement methods are the cross-section and geodesic distance methods. The cross-section method uses the key points and direction vector to find the tangent plane. In this paper, the key points have been obtained according to the bounding box technique, the length plane and width plane are perpendicular to the uov plane. The longitudinal section intersects the leaf length with a line of intersection, and the value of this line is used as the measured value of leaf length. The cross section intersects the leaf width with a line of intersection, the value of this line is used as the measured value of leaf width. The obtained length and width tangent are curves, which is consistent with the actual measurement method to obtain the curve distance from the starting point to the end point on the leaf according to the given points.
ๅธธ็”จ็š„ไธ‰็ปด้•ฟๅบฆๆต‹้‡ๆ–นๆณ•ๆœ‰ๆจชๆˆช้ขๅ’Œๆต‹ๅœฐ่ท็ฆปๆณ•ใ€‚ๆจชๆˆช้ขๆณ•ๅˆฉ็”จๅ…ณ้”ฎ็‚นๅ’Œๆ–นๅ‘ๅ‘้‡ๆ‰พๅˆฐๅˆ‡ๅนณ้ขใ€‚ๅœจๆœฌๆ–‡ไธญ๏ผŒๆ นๆฎ่พน็•Œๆก†ๆŠ€ๆœฏ่Žทๅพ—ไบ†ๅ…ณ้”ฎ็‚น๏ผŒ้•ฟๅบฆๅนณ้ขๅ’Œๅฎฝๅบฆๅนณ้ขๅž‚็›ดไบŽ uov ๅนณ้ขใ€‚็บตๅ‘ๆˆช้ขไธŽๅถ้•ฟ็›ธไบคๅฝขๆˆไบค็บฟ๏ผŒ่ฏฅ็บฟ็š„ๅ€ผ็”จไฝœๅถ้•ฟๆต‹้‡ๅ€ผใ€‚ๆจชๆˆช้ขไธŽๅถๅฎฝ็›ธไบคๅฝขๆˆไบค็บฟ๏ผŒ่ฏฅ็บฟ็š„ๅ€ผ็”จไฝœๅถๅฎฝๆต‹้‡ๅ€ผใ€‚่Žทๅพ—็š„้•ฟๅฎฝๅˆ‡็บฟๆ˜ฏๆ›ฒ็บฟ๏ผŒ่ฟ™ไธŽๆ นๆฎ็ป™ๅฎš็‚นไปŽ่ตท็‚นๅˆฐ็ปˆ็‚นๅœจๅถไธŠ่Žทๅพ—ๆ›ฒ็บฟ่ท็ฆป็š„ๅฎž้™…ๆต‹้‡ๆ–นๆณ•ไธ€่‡ดใ€‚
The geodesic distance method is a heuristic method, in which the starting point and the end point of the measurement must be provided to find the line connecting two points according to the shortest path principle, such as A* [49], Dijkstra [50] geodetic distance method. The Dijkstra algorithm is a typical shortest path algorithm, which is used to calculate the shortest path from the starting node to the final node. The Dijkstra algorithm can obtain the optimal solution of the shortest path. For the current point on the path, A* algorithm records the cost to the source point, and the expected cost from the current point to the target point, so it is a depth-first algorithm. The commonly used heuristic functions of A* algorithm include Manhattan, Euclidean and Chebyshev distances [51]. The research object of this paper is a 3D point cloud, which can move along any direction when looking for the next target points, so the Euclidean distance is chosen as the heuristic function of A* algorithm in this paper. The space distance between points is the basis of the shortest distance. The start and end key points of the geodesic distance method are the same as those of the cross-section method, and the length and width of the leaf are calculated by the start and end key points, so there are fluctuations between adjacent point pi and point pi+1 when searching for the shortest path.
ๆต‹ๅœฐ่ท็ฆปๆณ•ๆ˜ฏไธ€็งๅฏๅ‘ๅผๆ–นๆณ•๏ผŒๅ…ถไธญๅฟ…้กปๆไพ›ๆต‹้‡็š„่ตท็‚นๅ’Œ็ปˆ็‚น๏ผŒๆ นๆฎๆœ€็Ÿญ่ทฏๅพ„ๅŽŸ็†ๆ‰พๅˆฐ่ฟžๆŽฅไธค็‚น็š„็บฟ๏ผŒไพ‹ๅฆ‚ A* [49]ใ€Dijkstra [50]ๆต‹ๅœฐ่ท็ฆปๆณ•ใ€‚Dijkstra ็ฎ—ๆณ•ๆ˜ฏไธ€็งๅ…ธๅž‹็š„ๆœ€็Ÿญ่ทฏๅพ„็ฎ—ๆณ•๏ผŒ็”จไบŽ่ฎก็ฎ—ไปŽ่ตทๅง‹่Š‚็‚นๅˆฐๆœ€็ปˆ่Š‚็‚น็š„ๆœ€็Ÿญ่ทฏๅพ„ใ€‚Dijkstra ็ฎ—ๆณ•ๅฏไปฅ่Žทๅพ—ๆœ€็Ÿญ่ทฏๅพ„็š„ๆœ€ไผ˜่งฃใ€‚ๅฏนไบŽ่ทฏๅพ„ไธŠ็š„ๅฝ“ๅ‰็‚น๏ผŒA*็ฎ—ๆณ•่ฎฐๅฝ•ๅˆฐๆบ็‚น็š„ๆˆๆœฌๅ’ŒไปŽๅฝ“ๅ‰็‚นๅˆฐ็›ฎๆ ‡็‚น็š„้ข„ๆœŸๆˆๆœฌ๏ผŒๅ› ๆญคๅฎƒๆ˜ฏไธ€็งๆทฑๅบฆไผ˜ๅ…ˆ็ฎ—ๆณ•ใ€‚A*็ฎ—ๆณ•ๅธธ็”จ็š„ๅฏๅ‘ๅผๅ‡ฝๆ•ฐๅŒ…ๆ‹ฌๆ›ผๅ“ˆ้กฟ่ท็ฆปใ€ๆฌงๅ‡ ้‡Œๅพ—่ท็ฆปๅ’Œๅˆ‡ๆฏ”้›ชๅคซ่ท็ฆป[51]ใ€‚ๆœฌๆ–‡็š„็ ”็ฉถๅฏน่ฑกๆ˜ฏ 3D ็‚นไบ‘๏ผŒๅœจๅฏปๆ‰พไธ‹ไธ€ไธช็›ฎๆ ‡็‚นๆ—ถๅฏไปฅๆฒฟไปปไฝ•ๆ–นๅ‘็งปๅŠจ๏ผŒๅ› ๆญคๆœฌๆ–‡้€‰ๆ‹ฉๆฌงๅ‡ ้‡Œๅพ—่ท็ฆปไฝœไธบ A*็ฎ—ๆณ•็š„ๅฏๅ‘ๅผๅ‡ฝๆ•ฐใ€‚็‚นไน‹้—ด็š„็ฉบ้—ด่ท็ฆปๆ˜ฏๆœ€็Ÿญ่ท็ฆป็š„ๅŸบ็ก€ใ€‚ ่ตทๅง‹ๅ’Œ็ปˆๆญขๅ…ณ้”ฎ็‚นไธŽๆจชๆˆช้ขๆ–นๆณ•็›ธๅŒ๏ผŒๅถๅญ็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆ้€š่ฟ‡่ตทๅง‹ๅ’Œ็ปˆๆญขๅ…ณ้”ฎ็‚น่ฎก็ฎ—๏ผŒๅ› ๆญคๅœจๅฏปๆ‰พๆœ€็Ÿญ่ทฏๅพ„ๆ—ถ๏ผŒ็›ธ้‚ป็‚น pi ๅ’Œ็‚น pi+1 ไน‹้—ดๅญ˜ๅœจๆณขๅŠจใ€‚
In this paper, based on the cross-section method, the direction of the section is not perpendicular to the coordinate system, but the plane is constructed according to the point on the leaf closest to the center of the starting point and the end point. This paper proposes to use the cutting-plane method to obtain the intersection line of the leaf as the basis for measuring the length and width. For the leaf length, the starting point plstart and end point plend were obtained, but to determine a plane, three points which are not on the same straight line are required, so the third point is needed to construct the three-dimensional plane. Similarly, for the leaf width, the starting point pwstart and the end point pwend have been obtained by bounding box technology, and the third point is also needed to construct the width plane. The method proposed in this paper is not to calculate the length and width of the leaf according to the point cloud perpendicular to the coordinate system uov, and the process of coordinate system transformation can be omitted. It needs to specify the starting point and end point to calculate the target points for the leaf point cloud, then determine the tangent plane of length and width.
ๅœจ่ฟ™็ฏ‡่ฎบๆ–‡ไธญ๏ผŒๅŸบไบŽๆจชๆˆช้ขๆณ•๏ผŒๆˆช้ขๆ–นๅ‘ๅนถ้žๅž‚็›ดไบŽๅๆ ‡็ณป๏ผŒ่€Œๆ˜ฏๆ นๆฎๅถๅญไธŠ็ฆป่ตท็‚นๅ’Œ็ปˆ็‚นๆœ€่ฟ‘็š„็‚นๆž„ๅปบๅนณ้ขใ€‚ๆœฌๆ–‡ๆๅ‡บไฝฟ็”จๅˆ‡ๅ‰ฒๅนณ้ขๆณ•่Žทๅ–ๅถๅญไบค็บฟไฝœไธบๆต‹้‡้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๅŸบ็ก€ใ€‚ๅฏนไบŽๅถๅญ้•ฟๅบฆ๏ผŒ่Žทๅพ—ไบ†่ตท็‚น plstart ๅ’Œ็ปˆ็‚น plend ๏ผŒไฝ†็กฎๅฎšไธ€ไธชๅนณ้ข้œ€่ฆไธ‰ไธชไธๅœจๅŒไธ€็›ด็บฟไธŠ็š„็‚น๏ผŒๅ› ๆญค้œ€่ฆ็ฌฌไธ‰ไธช็‚นๆฅๆž„ๅปบไธ‰็ปดๅนณ้ขใ€‚ๅŒๆ ท๏ผŒๅฏนไบŽๅถๅญๅฎฝๅบฆ๏ผŒ้€š่ฟ‡่พน็•Œๆก†ๆŠ€ๆœฏ่Žทๅพ—ไบ†่ตท็‚น pwstart ๅ’Œ็ปˆ็‚น pwend ๏ผŒไนŸ้œ€่ฆ็ฌฌไธ‰ไธช็‚นๆฅๆž„ๅปบๅฎฝๅบฆๅนณ้ขใ€‚ๆœฌๆ–‡ๆๅ‡บ็š„ๆ–นๆณ•ไธๆ˜ฏๆ นๆฎๅž‚็›ดไบŽๅๆ ‡็ณป็š„็‚นไบ‘ uov ๆฅ่ฎก็ฎ—ๅถๅญ็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆ๏ผŒๅฏไปฅ็œ็•ฅๅๆ ‡็ณป่ฝฌๆข็š„่ฟ‡็จ‹ใ€‚ ้œ€่ฆๆŒ‡ๅฎš่ตท็‚นๅ’Œ็ปˆ็‚นๆฅ่ฎก็ฎ—ๅถ็‚นไบ‘็š„็›ฎๆ ‡็‚น๏ผŒ็„ถๅŽ็กฎๅฎš้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๅˆ‡ๅนณ้ขใ€‚
In order to obtain the third point, the midpoint of the line between the starting point plstart and the end point plend is set as plcenter in Equation (3). The point closest to plcenter on the leaf point cloud is selected as the third point pltarget on the cutting plane in Equation (4). The target point pltarget selected in this way can ensure the closest distance to the point plcenter, and the three points plstart, plend and pltarget constituted the plane from the three-dimensional leaf model.
ไธบไบ†่Žทๅพ—็ฌฌไธ‰็‚น๏ผŒๅฐ†่ตท็‚น plstart ๅ’Œ็ปˆ็‚น plend ไน‹้—ด็š„็บฟๆฎตไธญ็‚น่ฎพไธบๆ–น็จ‹๏ผˆ3๏ผ‰ไธญ็š„ plcenter ใ€‚ๅœจๅถ็‚นไบ‘ไธŠ้€‰ๆ‹ฉ่ท็ฆป plcenter ๆœ€่ฟ‘็š„็‚นไฝœไธบๆ–น็จ‹๏ผˆ4๏ผ‰ไธญๅˆ‡ๅ‰ฒๅนณ้ขไธŠ็š„็ฌฌไธ‰็‚น pltarget ใ€‚ไปฅ่ฟ™็งๆ–นๅผ้€‰ๆ‹ฉ็š„้ถ็‚น pltarget ๅฏไปฅ็กฎไฟไธŽ็‚น plcenter ็š„่ท็ฆปๆœ€่ฟ‘๏ผŒ่€Œไธ‰ไธช็‚น plstart ใ€ plend ๅ’Œ pltarget ๆž„ๆˆไบ†ไธ‰็ปดๅถๆจกๅž‹ๆž„ๆˆ็š„ๅนณ้ขใ€‚
plcenter=(plstart+plend)2
pltarget=Pmin{d(plcenter,pi)}
where, Pmin denotes the coordinates of the point with the smallest distance between plcenter and pi, and d denotes the Euclidean distance of two points. Similarly, when calculating the width tangent plane, the midpoint of the line between the starting point pwstart and the end point pwend is pwcenter in Equation (5). The point closest to pwcenter is selected as pwtarget on the leaf model in Equation (6).
ๅœจๅผไธญ๏ผŒ Pmin ่กจ็คบ plcenter ๅ’Œ pi ไน‹้—ด่ท็ฆปๆœ€ๅฐ็š„็‚น็š„ๅๆ ‡๏ผŒd ่กจ็คบไธค็‚นไน‹้—ด็š„ๆฌงๅ‡ ้‡Œๅพ—่ท็ฆปใ€‚็ฑปไผผๅœฐ๏ผŒๅœจ่ฎก็ฎ—ๅฎฝๅบฆๅˆ‡ๅนณ้ขๆ—ถ๏ผŒๆ–น็จ‹๏ผˆ5๏ผ‰ไธญ็š„่ตท็‚น pwstart ๅ’Œ็ปˆ็‚น pwend ไน‹้—ด็š„็บฟๆฎตไธญ็‚นไธบ pwcenter ใ€‚ๅœจๆ–น็จ‹๏ผˆ6๏ผ‰็š„ๅถๆจกๅž‹ไธญ๏ผŒ้€‰ๆ‹ฉ่ท็ฆป pwcenter ๆœ€่ฟ‘็š„็‚นไฝœไธบ pwtarget ใ€‚
pwcenter=(pwstart+pwend)2
pwtarget=Pmin{d(pwcenter,pi)}
In Figure 4, the red points, respectively, represent pstart, pend, and pcenter, while black points represent the 3D leaf model. The point with the smallest distance to pcenter is selected as ptarget, which is represented in blue.
ๅœจๅ›พ 4 ไธญ๏ผŒ็บข่‰ฒ็‚นๅˆ†ๅˆซไปฃ่กจ pstart ใ€ pend ๅ’Œ pcenter ๏ผŒ่€Œ้ป‘่‰ฒ็‚นไปฃ่กจ 3D ๅถ็‰‡ๆจกๅž‹ใ€‚่ท็ฆป pcenter ๆœ€่ฟ‘็š„็‚น่ขซ้€‰ไธบ ptarget ๏ผŒ็”จ่“่‰ฒ่กจ็คบใ€‚
Figure 4. Determination of the target point by starting and end point.
ๅ›พ 4. ็”ฑ่ตท็‚นๅ’Œ็ปˆ็‚น็กฎๅฎš็›ฎๆ ‡็‚นใ€‚
For the section of leaf length, the three points of plstart, plend and plcenter are on the same straight line, then pltarget and plstart and pend are not on the same straight line, so according to the plane equation, it can be guaranteed that the three points determine a plane. For the section of width, pwtarget and pwstart and pwend are not in a straight line, so here it can be guaranteed that three points define a plane. This process is to compare the distance between the point set pi and pcenter, and select the point p corresponding to the smallest distance as the point ptarget. The purpose is to determine a plane through a line and point, and cut a curve through the plane and leaf point cloud surface.
ๅฏนไบŽๅถ็‰‡้•ฟๅบฆ็š„้ƒจๅˆ†๏ผŒ็‚น plstart ใ€ plend ๅ’Œ plcenter ๅœจๅŒไธ€็›ด็บฟไธŠ๏ผŒ่€Œ็‚น pltarget ใ€ plstart ๅ’Œ pend ไธๅœจๅŒไธ€็›ด็บฟไธŠ๏ผŒๅ› ๆญคๆ นๆฎๅนณ้ขๆ–น็จ‹๏ผŒๅฏไปฅไฟ่ฏ่ฟ™ไธ‰ไธช็‚น็กฎๅฎšไธ€ไธชๅนณ้ขใ€‚ๅฏนไบŽๅฎฝๅบฆ้ƒจๅˆ†๏ผŒ็‚น pwtarget ใ€ pwstart ๅ’Œ pwend ไธๅœจๅŒไธ€็›ด็บฟไธŠ๏ผŒๅ› ๆญคๅฏไปฅไฟ่ฏไธ‰ไธช็‚นๅฎšไน‰ไธ€ไธชๅนณ้ขใ€‚่ฟ™ไธช่ฟ‡็จ‹ๆ˜ฏไธบไบ†ๆฏ”่พƒ็‚น้›† pi ๅ’Œ pcenter ไน‹้—ด็š„่ท็ฆป๏ผŒๅนถ้€‰ๆ‹ฉๅฏนๅบ”ๆœ€ๅฐ่ท็ฆป็š„็‚น p ไฝœไธบ็‚น ptarget ใ€‚็›ฎ็š„ๆ˜ฏ้€š่ฟ‡ไธ€ๆก็›ด็บฟๅ’Œไธ€ไธช็‚น็กฎๅฎšไธ€ไธชๅนณ้ข๏ผŒๅนถ้€š่ฟ‡ๅนณ้ขๅ’Œๅถ็‰‡็‚นไบ‘่กจ้ขๅˆ‡ๅ‰ฒไธ€ๆกๆ›ฒ็บฟใ€‚
The length and width section of the leaf obtained by the traditional cross-section method is shown in Figure 5a, the coordinate system was reconstructed according to the PCA method, and the length and width planes are perpendicular to the coordinate plane uov. For the width section, suppose the equation is Awx+Bwy+Cwz+Dw=0. The plane Fw through three points that are not on the same line in the equation are pwstart, pwtarget, and pwend. The transverse plane tangent of the leaf is shown in Figure 5b. Suppose the length plane equation is Alx+Bly+Clz+Dl=0. The plane Fl through three points that are not on the same line in the equation are plstart, pltarget, and plend. The plane tangent of the leaf length in Figure 5c. The section intersects the leaf length with a line, as ll. Similarly, the section intersects the leaf width with a line, as lw.
ๅ›พ 5a ๆ˜พ็คบไบ†้€š่ฟ‡ไผ ็ปŸๆจชๅˆ‡ๆณ•่Žทๅพ—็š„ๅถ็‰‡้•ฟๅบฆๅ’Œๅฎฝๅบฆ้ƒจๅˆ†๏ผŒๅๆ ‡็ณป็ปŸๆ นๆฎไธปๆˆๅˆ†ๅˆ†ๆž๏ผˆPCA๏ผ‰ๆ–นๆณ•้‡ๅปบ๏ผŒ้•ฟๅบฆๅ’Œๅฎฝๅบฆๅนณ้ขๅž‚็›ดไบŽๅๆ ‡ๅนณ้ข uov ใ€‚ๅฏนไบŽๅฎฝๅบฆ้ƒจๅˆ†๏ผŒๅ‡่ฎพๆ–น็จ‹ไธบ Awx+Bwy+Cwz+Dw=0 ใ€‚้€š่ฟ‡ๆ–น็จ‹ไธญไธๅœจๅŒไธ€็›ด็บฟไธŠ็š„ไธ‰ไธช็‚น pwstart ใ€ pwtarget ๅ’Œ pwend ็กฎๅฎš็š„ๅนณ้ข Fw ใ€‚ๅถ็‰‡็š„ๆจชๅˆ‡้ขๅœจๅ›พ 5b ไธญๆ˜พ็คบใ€‚ๅ‡่ฎพ้•ฟๅบฆๅนณ้ขๆ–น็จ‹ไธบ Alx+Bly+Clz+Dl=0 ใ€‚้€š่ฟ‡ๆ–น็จ‹ไธญไธๅœจๅŒไธ€็›ด็บฟไธŠ็š„ไธ‰ไธช็‚น plstart ใ€ pltarget ๅ’Œ plend ็กฎๅฎš็š„ๅนณ้ข Fl ๆ˜ฏๅถ็‰‡้•ฟๅบฆ็š„ๅˆ‡ๅนณ้ขใ€‚ๅ›พ 5c ไธญๆ˜พ็คบไบ†ไธŽๅถ็‰‡้•ฟๅบฆ็›ธไบค็š„ๆˆช้ข็บฟ๏ผŒๅฆ‚ ll ใ€‚็ฑปไผผๅœฐ๏ผŒๆˆช้ข็บฟไธŽๅถ็‰‡ๅฎฝๅบฆ็›ธไบค๏ผŒๅฆ‚ lw ใ€‚
Figure 5. Obtaining spatial length and width planes of leaf. (a) Spatial planes of length and width by cross-section method. (b) Spatial plane of width according to this paper. (c) Spatial plane of length according to this paper.
ๅ›พ 5. ่Žทๅ–ๅถ็‰‡็š„็ฉบ้—ด้•ฟๅบฆๅ’Œๅฎฝๅบฆๅนณ้ขใ€‚๏ผˆa๏ผ‰้€š่ฟ‡ๆจชๅˆ‡ๆณ•่Žทๅพ—็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆ็ฉบ้—ดๅนณ้ขใ€‚๏ผˆb๏ผ‰ๆ นๆฎๆœฌๆ–‡่Žทๅพ—็š„ๅฎฝๅบฆ็ฉบ้—ดๅนณ้ขใ€‚๏ผˆc๏ผ‰ๆ นๆฎๆœฌๆ–‡่Žทๅพ—็š„้•ฟๅบฆ็ฉบ้—ดๅนณ้ขใ€‚
The length and width cut planes obtained by this paper are not perpendicular to the coordinate plane. The essence of our method is to use the tangent plane to cut the model and obtain the point on the intersection line as the basis for calculating the length and width. The leaf model intersects with the length and width planes, which are used to measure the distance of length and width in Algorithm 2.
่ฏฅๆ–‡่Žทๅพ—็š„้•ฟๅบฆๅ’Œๅฎฝๅบฆๅˆ‡ๅ‰ฒๅนณ้ขไธŽๅๆ ‡ๅนณ้ขไธๅž‚็›ดใ€‚ๆˆ‘ไปฌๆ–นๆณ•็š„ๆ ธๅฟƒๆ˜ฏๅˆฉ็”จๅˆ‡ๅนณ้ขๅˆ‡ๅ‰ฒๆจกๅž‹๏ผŒๅนถๅฐ†ไบค็บฟไธŠ็š„็‚นไฝœไธบ่ฎก็ฎ—้•ฟๅบฆๅ’Œๅฎฝๅบฆ็š„ๅŸบ็ก€ใ€‚ๅถๆจกๅž‹ไธŽ้•ฟๅบฆๅ’Œๅฎฝๅบฆๅนณ้ข็›ธไบค๏ผŒ่ฟ™ไบ›ๅนณ้ข็”จไบŽๅœจ็ฎ—ๆณ• 2 ไธญๆต‹้‡้•ฟๅบฆๅ’Œๅฎฝๅบฆใ€‚
Algorithm 2 The algorithm of calculating leaf length and width.
็ฎ—ๆณ• 2 ่ฎก็ฎ—ๅถ้•ฟๅ’Œๅถๅฎฝ็š„็ฎ—ๆณ•ใ€‚
    Process of calculating leaf length
่ฎก็ฎ—ๅถ็‰‡้•ฟๅบฆ็š„่ฟ‡็จ‹

Require: P={p1,p2โ€ฆpn},i=(1,2โ€ฆn)  ้œ€่ฆ๏ผš P={p1,p2โ€ฆpn},i=(1,2โ€ฆn)
    Calculate the midpoint plcenter of line ll using Equation (3).
่ฎก็ฎ—็›ด็บฟ ll ็š„ไธญ็‚น plcenter ๏ผŒไฝฟ็”จๅ…ฌๅผ๏ผˆ3๏ผ‰ใ€‚

    for i = 1:n do
ๅฏนไบŽ i = 1 ๅˆฐ n ๅพช็Žฏ

          Calculate the distance between pi and plc as dli,
่ฎก็ฎ— pi ไธŽ plc ไน‹้—ด็š„่ท็ฆปไธบ dli ๏ผŒ

          Find dlmin=mindli, and the keypoint pltarget using Equation (4).
ๆ‰พๅˆฐ dlmin=mindli ๏ผŒๅนถไฝฟ็”จๅ…ฌๅผ๏ผˆ4๏ผ‰็กฎๅฎšๅ…ณ้”ฎ็‚น pltarget ใ€‚

    end for
    Calculate the cutting plane of plstart,plend,pltarget as Alx+Bly+Clz+Dl=0,
่ฎก็ฎ— plstart,plend,pltarget ็š„ๅˆ‡ๅ‰ฒๅนณ้ขไธบ Alx+Bly+Clz+Dl=0 ๏ผŒ

    Define the tangent point set of leaf model and cutting plane as the length.
ๅฎšไน‰ๅถๆจกๅž‹ๅˆ‡็‚น้›†ๅ’Œๅˆ‡ๅ‰ฒๅนณ้ข็š„้•ฟๅบฆใ€‚

Ensure:  ่ฏทๆไพ›้œ€่ฆ็ฟป่ฏ‘็š„ๆบๆ–‡ๆœฌ๏ผŒไปฅไพฟๆˆ‘่ฟ›่กŒ็ฟป่ฏ‘
    plkโˆˆ tangent point set k=1,2โ€ฆj
plkโˆˆ ๅˆ‡็‚น้›† k=1,2โ€ฆj

 
    Process of calculating leaf width
่ฎก็ฎ—ๅถ็‰‡ๅฎฝๅบฆ่ฟ‡็จ‹

Require: P={p1,p2โ€ฆpn},i=(1,2โ€ฆn)  ้œ€่ฆ๏ผš P={p1,p2โ€ฆpn},i=(1,2โ€ฆn)
    Calculate the midpoint pwcenter of line lw using Equation (5).
่ฎก็ฎ—็›ด็บฟ lw ็š„ไธญ็‚น pwcenter ๏ผŒไฝฟ็”จๅ…ฌๅผ๏ผˆ5๏ผ‰ใ€‚

    for i = 1:n do
ๅฏนไบŽ i = 1 ๅˆฐ n ๅพช็Žฏ

          Calculate the distance between pi and pwc as dwi,
่ฎก็ฎ— pi ไธŽ pwc ไน‹้—ด็š„่ท็ฆปไธบ dwi ๏ผŒ

          Find dwmin=mindwi, and the keypoint pwtarget using Equation (6).
ๆ‰พๅˆฐ dwmin=mindwi ๏ผŒๅนถไฝฟ็”จๅ…ฌๅผ๏ผˆ6๏ผ‰็กฎๅฎšๅ…ณ้”ฎ็‚น pwtarget ใ€‚

    end for
    Calculate the cutting plane of pwstart,pwend,pwtarget as Awx+Bwy+Cwz+Dw=0,
่ฎก็ฎ— pwstart,pwend,pwtarget ็š„ๅˆ‡ๅ‰ฒๅนณ้ขไธบ Awx+Bwy+Cwz+Dw=0 ๏ผŒ

    Define the tangent point set of leaf model and cutting plane as the width.
ๅฎšไน‰ๅถๆจกๅž‹็š„ๅˆ‡็‚น้›†ๅ’Œๅˆ‡ๅ‰ฒๅนณ้ขไธบๅฎฝๅบฆใ€‚

Ensure:  ่ฏทๆไพ›้œ€่ฆ็ฟป่ฏ‘็š„ๆบๆ–‡ๆœฌ๏ผŒไปฅไพฟๆˆ‘่ฟ›่กŒ็ฟป่ฏ‘
    pwkโˆˆ tangent point set k=1,2โ€ฆl
pwkโˆˆ ๅˆ‡็‚น้›† k=1,2โ€ฆl
Figure 6 shows the length and width points of eggplant leaves obtained by geodesic distance and cross-section methods. A* and Dijkstra methods were used for geodesic distance method. The starting point and ending point of geodesic distance method and cross-section method are the same, that is Plstart, pwstart, plend, pwend. The red line represents the width in Figure 6a and length Figure 6e of the leaf obtained by A* method, the blue line represents the width in Figure 6b and length Figure 6f of the leaf obtained by the Dijkstra method, and the orange line represents the width in Figure 6c and length Figure 6g of the leaf obtained by the cross-section method. The green line represents the width in Figure 6d and length Figure 6h of the leaf obtained by our method. When the starting point and end point are given, our method obtains the key points through the starting and end point.
Figure 6. Obtaining the point sets of leaf length and width. (a) Obtaining the key point set of width by A* algorithm. (b) Obtaining the key point set of width by Dijkstra algorithm. (c) Obtaining the key point set of width by cross-section algorithm. (d) Obtaining the key point set of width by our method. (e) Obtaining the key point set of length by A* algorithm. (f) Obtaining the key point set of length by Dijkstra algorithm. (g) Obtaining the key point set of length by cross-section algorithm. (h) Obtaining the key point set of length by our method.
ๅ›พ 6. ่Žทๅ–ๅถ้•ฟๅ’Œๅถๅฎฝ็š„็‚น้›†ใ€‚๏ผˆa๏ผ‰้€š่ฟ‡ A*็ฎ—ๆณ•่Žทๅ–ๅฎฝๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆb๏ผ‰้€š่ฟ‡ Dijkstra ็ฎ—ๆณ•่Žทๅ–ๅฎฝๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆc๏ผ‰้€š่ฟ‡ๆˆช้ข็ฎ—ๆณ•่Žทๅ–ๅฎฝๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆd๏ผ‰้€š่ฟ‡ๆˆ‘ไปฌ็š„ๆ–นๆณ•่Žทๅ–ๅฎฝๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆe๏ผ‰้€š่ฟ‡ A*็ฎ—ๆณ•่Žทๅ–้•ฟๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆf๏ผ‰้€š่ฟ‡ Dijkstra ็ฎ—ๆณ•่Žทๅ–้•ฟๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆg๏ผ‰้€š่ฟ‡ๆˆช้ข็ฎ—ๆณ•่Žทๅ–้•ฟๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚๏ผˆh๏ผ‰้€š่ฟ‡ๆˆ‘ไปฌ็š„ๆ–นๆณ•่Žทๅ–้•ฟๅบฆๅ…ณ้”ฎ็‚น้›†ใ€‚
The geodetic distance method, cross-section method, and the method of this paper have the same starting and end points. The points obtained by A*, Dijkstra method are all on the original point cloud, and the shortest distance from the starting point to the end point obtaining according to the distance between each point of the leaf model. Therefore, the geodetic distance method requires more time, and the time complexity of the Dijkstra method is O(n2) [52]. The essence of the cross-section method and this paper is to take the intersection point of the section and the model as the key points. The principle of the cross-section method to obtain the plane is based on the starting point, the end point and the vector perpendicular to the coordinate plane. The principle of this paper is based on the starting point, end point and target points. Therefore, in Figure 6d,h, there is starting point, end point and target point indicated by yellow dots.
ๅคงๅœฐๆต‹้‡่ท็ฆปๆณ•ใ€ๆจชๆˆช้ขๆณ•ๅ’Œๆœฌๆ–‡็š„ๆ–นๆณ•ๅ…ทๆœ‰็›ธๅŒ็š„่ตท็‚นๅ’Œ็ปˆ็‚นใ€‚A*็ฎ—ๆณ•ๅ’Œ Dijkstra ็ฎ—ๆณ•ๅพ—ๅˆฐ็š„ๆ‰€ๆœ‰็‚น้ƒฝๅœจๅŽŸๅง‹็‚นไบ‘ไธŠ๏ผŒๆ นๆฎๅถๆจกๅž‹ไธญๆฏไธ€็‚นไน‹้—ด็š„่ท็ฆป่Žทๅพ—ไปŽ่ตท็‚นๅˆฐ็ปˆ็‚น็š„ๆœ€็Ÿญ่ท็ฆปใ€‚ๅ› ๆญค๏ผŒๅคงๅœฐๆต‹้‡่ท็ฆปๆณ•้œ€่ฆๆ›ดๅคšๆ—ถ้—ด๏ผŒDijkstra ็ฎ—ๆณ•็š„ๆ—ถ้—ดๅคๆ‚ๅบฆไธบ O(n2) [ 52]ใ€‚ๆจชๆˆช้ขๆณ•ๅ’Œๆœฌๆ–‡็š„ๆœฌ่ดจๆ˜ฏๅฐ†ๆจชๆˆช้ขไธŽๆจกๅž‹็š„ไบค็‚นไฝœไธบๅ…ณ้”ฎ็‚นใ€‚ๆจชๆˆช้ขๆณ•่Žทๅพ—ๅนณ้ข็š„ๅŽŸ็†ๅŸบไบŽ่ตท็‚นใ€็ปˆ็‚นๅ’Œๅž‚็›ดไบŽๅๆ ‡ๅนณ้ข็š„ๅ‘้‡ใ€‚ๆœฌๆ–‡็š„ๅŽŸ็†ๅŸบไบŽ่ตท็‚นใ€็ปˆ็‚นๅ’Œ็›ฎๆ ‡็‚นใ€‚ๅ› ๆญค๏ผŒๅœจๅ›พ 6dใ€h ไธญ๏ผŒๆœ‰้ป„่‰ฒๅœ†็‚นๆ ‡่ฎฐ็š„่ตท็‚นใ€็ปˆ็‚นๅ’Œ็›ฎๆ ‡็‚นใ€‚

3. Results

In this paper, 20 three-dimensional eggplant leaves were taken as experimental objects, and obtain the key points of each model plstart, plend, pwstart and pwend. After obtaining the key points pltarget and pwtarget, the length and width were calculated by A*, Dijkstra, cross-section and methods proposed in this paper. For the key point set of cutting plane pk, it needs to be connected and measured between two adjacent points