LEAF BOUNDARY EXTRACTION AND GEOMETRIC LEAF BOUNDARY EXTRACTION AND GEOMETRIC
MODELING OF VEGETABLE SEEDLINGS MODELING OF VEGETABLE SEEDLINGS
Ta-Te Lin, Yud-Tse Chi, Wen-Chi Liao
Ta-Te Lin, Yud-Tse Chi, Wen-Chi Liao
Department of Bio-Industrial Mechatronics Engi
Department of Bio-Industrial Mechatronics Engi
neering,
neering,
National Taiwan University,
National Taiwan University,
Taipei, Taiwan, ROC
INTRODUCTION
INTRODUCTION
Plant growth measurement and
Plant growth measurement and
modeling
modeling
Image processing technique
Image processing technique
Seedling characteristics
Seedling characteristics
OBJECTIVES
OBJECTIVES
To develop image processing algorithms for leaf To develop image processing algorithms for leaf
boundary extraction.
boundary extraction.
To model leaf boundary with Bezier curves and To model leaf boundary with Bezier curves and
develop leaf features based on Bezier curve.
develop leaf features based on Bezier curve.
To determined leaf features of selected vegetable To determined leaf features of selected vegetable
seedlings based on basic morphological descriptors,
seedlings based on basic morphological descriptors,
Fourier descriptors, and Bezier curve descriptors.
Fourier descriptors, and Bezier curve descriptors.
To examine the variation of leaf features at different To examine the variation of leaf features at different
growth stages.
growth stages.
To graphically simulate the growth of seedling To graphically simulate the growth of seedling
leaves.
IMAGE PROCESSING ALGORITHM
IMAGE PROCESSING ALGORITHM
No
No
Leaf image acquisition
Leaf image acquisition
Image binarization and blob analy sis
Image binarization and blob analy sis
Searching leaf tip and base by discontinuity
Searching leaf tip and base by discontinuity
Boundary edge detection
Boundary edge detection
Determination of basic morphological features
Determination of basic morphological features
Bezier curve approximation
Bezier curve approximation
Petiole designation Petiole designation Error small enough? Error small enough?
Determination of Bezier features
Determination of Bezier features
Determination of Fourier descriptors
Determination of Fourier descriptors
Bezier curve normalization
Bezier curve normalization Yes
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Conventional morphological features
Conventional morphological features
Fourier descriptors
Fourier descriptors
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Basic quantity descriptors
Basic quantity descriptors
• Area (A)
• Perimeter (P)
• Maximum length (L)
• Maximum width (W)
• Convex hull (H)
Dimensionless shape factors
Dimensionless shape factors
• Compactness (C)
• Roundness (R)
• Elongation (E)
• Roughness (G)
Conventional Morphological Features
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Conventional Morphological Features
Conventional Morphological Features
2
/
4
A
P
C
Compactness RoundnessR
4
A
/
L
2 ElongationE
W
/
L
RoughnessG
H
/
P
Dimensionless shape factors Basic quantity descriptors
L L W W A A P P HH
1 0]
/
2
exp[
)
(
1
)
(
N kN
uk
j
k
s
N
u
a
)
(
)
(
)
(
k
x
k
jy
k
s
x(k) and y(k) are x-y coordinates of leaf boundary pixels
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Fourier descriptors
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Fourier descriptors
Fourier descriptors
Steps to extract Fourier descriptors
Steps to extract Fourier descriptors
Find the major axis of seedling leaf with Hotelling transform Find the major axis of seedling leaf
with Hotelling transform
Rotate seedling leaf to horizontal position and select 256 points on the leaf boundary Rotate seedling leaf to horizontal position and select 256 points on the leaf boundary
Convert x-y coordinates of boundary points to complex number
Convert x-y coordinates of boundary points to complex number
Use FFT algorithm to obtain Fourier transform coefficient Use FFT algorithm to obtain
Fourier transform coefficient
Normalization of Fourier transform coefficients to obtain Fourier descriptors
Normalization of Fourier transform coefficients to obtain Fourier descriptors
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Fourier descriptors
Fourier descriptors
Original Image Binary Image
N=256 N=128 N=64 N=32
N=16 N=8 N=4 N=2
Cabbage
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Fourier descriptors
Fourier descriptors
Original Image Binary Image
N=256 N=128 N=64 N=32
N=16 N=8 N=4 N=2
Lettuce
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Bezier descriptors
Bezier descriptors
where m = n – 1, xk+1, yk+1 are the coordinate
s of the n control points, and Bk,m(u) are the
Bezier blending coefficients
m k k m k m k k m ky
u
B
u
y
x
u
B
u
x
0 1 , 0 1 ,)
(
)
(
)
(
)
(
k m k k m k m ku
u
k
m
k
m
u
u
m
k
C
u
B
(
1
)
)!
(!
!
)
1
(
)
,
(
)
(
, P1 P0 P2 P3 Bezier curveLEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Bezier descriptors
Bezier descriptors
Steps to obtain Bezier descriptors
Steps to obtain Bezier descriptors
Image acquisition Image segmentation Boundary detection
Finding leaf tip and leaf base
Fitting boundary with Bezier curves
Normalization and obtain bezier descriptors
A B C
LEAF FEATURE EXTRACTION
LEAF FEATURE EXTRACTION
Bezier descriptors
Bezier descriptors
Bezier descriptors
Bezier descriptors
•
Leaf tip angle
Leaf tip angle
•
Leaf base angle
Leaf base angle
•
Left control line ratio
Left control line ratio
•
Right control line ratio
Right control line ratio
•
Normalized control
Normalized control
point coordinates
RESULTS
RESULTS
Leaf features at different growth stages
Leaf features at different growth stages
•
Basic morphologic features
Basic morphologic features
•
Bezier descriptors
Bezier descriptors
Applications
Applications
•
Geometric Modeling of Seedling Leaves
Geometric Modeling of Seedling Leaves
•
Leaf Shape Comparisons and Plant
Leaf Shape Comparisons and Plant
Identification
LEAF FEATURES AT DIFFERENT
LEAF FEATURES AT DIFFERENT
GROWTH STAGES
GROWTH STAGES
Cabbage Seedlings y = 0.5149x + 8.6391 R2 = 0.954 y = 0.4721x + 7.3878 R2 = 0.981 y = 0.1735x + 2.8094 R2 = 0.935 y = 0.1241x + 2.0504 R2 = 0.964 0 5 10 15 20 25 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e (c m )Convex hull perimeter Perimeter Length Width Cabbage Seedlings y = 0.5149x + 8.6391 R2 = 0.954 y = 0.4721x + 7.3878 R2 = 0.981 y = 0.1735x + 2.8094 R2 = 0.935 y = 0.1241x + 2.0504 R2 = 0.964 0 5 10 15 20 25 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e (c m )
Convex hull perimeter Perimeter
Length Width
LEAF FEATURES AT DIFFERENT
LEAF FEATURES AT DIFFERENT
GROWTH STAGES
GROWTH STAGES
Cabbage Seedling y = 0.0011x + 0.8673 R2 = 0.061 y = 0.0027x + 0.6464 R2 = 0.100 y = 0.0016x + 0.6113 R2 = 0.031 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e Roundness Roughness Compactness Cabbage Seedling y = 0.0011x + 0.8673 R2 = 0.061 y = 0.0027x + 0.6464 R2 = 0.100 y = 0.0016x + 0.6113 R2 = 0.031 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e Roundness Roughness CompactnessLEAF FEATURES AT DIFFERENT
LEAF FEATURES AT DIFFERENT
GROWTH STAGES
GROWTH STAGES
Cabbage Seedling y = 0.3077x + 96.2 R2 = 0.016 y = 0.3194x + 140.31 R2 = 0.028 0 50 100 150 200 250 0 5 10 15 20 25 30 Leaf Area (cm2) D eg re eLeaf tip angle Leaf base angle
Cabbage Seedling y = 0.3077x + 96.2 R2 = 0.016 y = 0.3194x + 140.31 R2 = 0.028 0 50 100 150 200 250 0 5 10 15 20 25 30 Leaf Area (cm2) D eg re e
Leaf tip angle Leaf base angle
LEAF FEATURES AT DIFFERENT
LEAF FEATURES AT DIFFERENT
GROWTH STAGES
GROWTH STAGES
Cabbage Seedling y = 0.0004x + 1.3789 R2 = 0.0006 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e Elongation Cabbage Seedling y = 0.0004x + 1.3789 R2 = 0.0006 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 0 5 10 15 20 25 30 Leaf Area (cm2) V al u e ElongationAPPLICATIONS
APPLICATIONS
Geometric Modeling of Seedling Leaves
Geometric Modeling of Seedling Leaves
Wire Frame Model Perspective View Mapping with Texture
Elliptical Model
APPLICATIONS
APPLICATIONS
Geometric Modeling of Seedling Leaves
Geometric Modeling of Seedling Leaves
Wire Frame Model Perspective View Mapping with Texture
Bezier Curve Model
Top View
Top View
Side View
Side View
Real Image
Real Image Graphics SimulationGraphics Simulation
APPLICATIONS
APPLICATIONS
3D Reconstruction of Seedling Structure
3D Reconstruction of Seedling Structure
Graphic Simulation of Cabbage Seedling
APPLICATIONS
APPLICATIONS
3D Reconstruction of Seedling Structure
3D Reconstruction of Seedling Structure
Top View
Top View
Side View
Side View
Real Image
Real Image Graphics SimulationGraphics Simulation
Graphic Simulation of Chinese Mustard Seedling
APPLICATIONS
APPLICATIONS
Leaf Shape Comparisons and Plant Identification
Leaf Shape Comparisons and Plant Identification
Leaf Feature Extraction Leaf Feature Extraction Leaf Image Morphological Features Fourier Descriptors Bezier Features Pattern Recognition Statistical Analysis Neural Network Cluster Analysis Genetic Algorithm Pattern Recognition Statistical Analysis Neural Network Cluster Analysis Genetic Algorithm Plant
APPLICATIONS
APPLICATIONS
Leaf Shape Comparisons and Plant Identification
Leaf Shape Comparisons and Plant Identification
Chinese Mustard Chinese Heading Cabbage
Cabbage
APPLICATIONS
APPLICATIONS
Leaf Shape Comparisons and Plant Identification
Leaf Shape Comparisons and Plant Identification
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 0.2 0.4 0.6 0.8 1.0 roundness co m pa ct ne ss
Chinese Heading Cabbage Lettuce Cabbage Chinese Mustard 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 0.2 0.4 0.6 0.8 1.0 roundness co m pa ct ne ss
Chinese Heading Cabbage Lettuce
Cabbage
APPLICATIONS
APPLICATIONS
0 20 40 60 80 100 120 140 160 180 0 20 40 60 80 100 120 140 160 180 200Leaf Tip Angle (degree)
Le af B as e A ng le ( D eg re e)
) Chinese Heading Cabbage
Lettuce Cabbage Chinese Mustard 0 20 40 60 80 100 120 140 160 180 0 20 40 60 80 100 120 140 160 180 200
Leaf Tip Angle (degree)
Le af B as e A ng le ( D eg re e)
) Chinese Heading Cabbage
Lettuce Cabbage
Chinese Mustard
Leaf Shape Comparisons and Plant Identification
APPLICATIONS
APPLICATIONS
Leaf Shape Comparisons and Plant Identification
Leaf Shape Comparisons and Plant Identification
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Left Control Line Ratio
R ig ht C on tr ol L in e R at io )
Chinese Head Cabbage Lettuce Cabbage Chinese Mustard 0 1 2 3 4 5 6 0 1 2 3 4 5 6
Left Control Line Ratio
R ig ht C on tr ol L in e R at io )
Chinese Head Cabbage Lettuce
Cabbage
CONCLUSIONS
CONCLUSIONS
An image processing algorithm was developed An image processing algorithm was developed
to quantitatively describe vegetable seedling le
to quantitatively describe vegetable seedling le
af shape.
af shape.
The leaf shape descriptors can be classified intThe leaf shape descriptors can be classified int
o basic morphological descriptors, Bezier curve
o basic morphological descriptors, Bezier curve
descriptors, and Fourier descriptors.
descriptors, and Fourier descriptors.
The Bezier curve can be successfully used to fiThe Bezier curve can be successfully used to fi
t the leaf boundary of selected vegetable seedli
t the leaf boundary of selected vegetable seedli
ngs. Features deduced from Bezier curves, suc
ngs. Features deduced from Bezier curves, suc
h as leaf tip angle, leaf base angle, normalized
h as leaf tip angle, leaf base angle, normalized
control points, and control line ratios, can be us
control points, and control line ratios, can be us
ed to characterize leaf shape.
The use of Fourier descriptors to model leaf The use of Fourier descriptors to model leaf
shape was demonstrated.
shape was demonstrated.
The effect of leaf development on the variation The effect of leaf development on the variation
of leaf features was investigated. Leaf features
of leaf features was investigated. Leaf features
invariant to the leaf size were identified.
invariant to the leaf size were identified.
The measured features of seedling leaves The measured features of seedling leaves
allowed for 3D reconstruction of the vegetable
allowed for 3D reconstruction of the vegetable
seedling for graphic display and leaf shape
seedling for graphic display and leaf shape
comparison.
comparison.