You are on page 1of 6

IEEE WESCANEX '95 PROCEEDINGS 403

Image Processing Methods for Identifying Species of Plants


Shulin Dave, Student Member, IEEE, Ken Runtz, Member IEEE
Keywords-Segmentation, filter, texture, color chromaticity chart, fourier transform, fractal dimension

Abstract: More selective methods for applying If a plant or row of plants can be located in a
agricultural herbicides on fields can result in field using vision then it is possible for a tractor
substantial cost savings. Three image or other vehicle to automatically steer itself
processing methods were tested for their along the row and free the driver to do other
ability to identify four different images of tasks. The ability to detect weeds from within
plant species. First two images were different crops could lead to the possibility of localized
and the other two were similar. The images spraying of herbicides thus reducing chemical
are preprocessed by segmentation and spatial waste, crop damage and environmental
filtering using the Color Chromaticity Chart. pollution.
The test results provide evidence that texture
based methods can provide a useful metric for The general objective of this research is to
distinguishingbetween some species of plants. investigate the potential of using image
processing techniques on plants spatial
I. INTRODUCTION characteristics as an alternative or supplemental
plant identification method. It also evaluates

A gricultural practices that uniformly


treat large field areas are changing.
There is a great deal of interest in technologies
several texture based methods. The plants were
photographed at a height of Im. These
photographs were scanned and converted from
and practices that customize the application of TIFF image format to binary RGB 256 x 256 x 8
seed, fertilizer, herbicides and other substances bits. A black and white image was generated
on a much smaller scale, even down to the from RGB format image file. Both color and
individual plant. Researchers in Australia have black and white images were used in different
developed a sprayer control system that activates image processing techniques. Pre-processing
individual nozzles based on the presence of was performed to convert these files into
plants and thereby dramatically reduces the cost segmented, filtered, blacWwhite and textured
of weed control in chemical fallow operations. image files. using a Color Chromaticity Chart.
The system is based on the spectral reflectance A spatial mask filter was used to remove the
properties of the vegetation. effect of soil and stones. Additional filtering was
required for noise reduction.
The application of targeted spraying systems
in-crop requires the development of real-time 11. PREPROCESSING
methods for distinguishing between weeds and
crop and between different weed species. Some For image analysis the first step is to segment
research into electronic plant recognition has the image. Segmentation subdivides an image
been reported using geometrical properties such into its constituent parts. It partitions the image
as leaf elongation and moments of inertia [9]. space into meaningful regions such as the plant
These methods require the image segmentation canopy portion excluding ground, and stones
of individual plants which is difficult in a field [8]. Segmentation for a monochrome image is
setting. Other methods with promise involve based on discontinuity and similarity.
color spectral signatures. Texture based methods Discontinuity partitions the image based on
do not need individual plants to be isolated and abrupt changes. It is used for detecting isolated
can be routinely applied to the full image. They points, lines, edges in an image. Similarity is
can be relatively insensitive to the orientation based on thresholding and region growing. This
and scale of plant images. The ability to locate thresholding is applied for the static plant
and identify plant species leads to many images. Two segmented images were produced
applications of useful control system [7]. using these methods: one binary and the other
retaining several gray levels to obtain more
The authors are with University of Regina, Regina, Canada texture. The initial segmentation was based on

0 1995 IEEE
IEEE CAT, NO. 95CH3581-6/0-7803-2741-1/95/$3.00
404 EEE WESCANEX '95 PROCEEDINGS

the color cromaticity chart. The plant color is black and white image in our case was generated
assumed green. The equation for separating the from color RGB image.
green color information from the image was
developed as follows. Using a Fast Fourier Transform Annular
Band Approach &e input image is converted
Threshold limit = 0.83R + Intercept (1) from spatial domain to frequency domain. This
frequency domain image is analyzed for plant
The characteristics to differentiate one color identification. The advantage of using Annular
from another are brightness, saturation, hue. Band Approach is rotational invariance. This
Hue and saturation together are called was important as the plant are not in a fix
chromaticity. The color chromaticity diagram position [3]. After transforming the image in
shows color composition as a function of R, G frequency domain, the power spectrum inside
and B plane [3].As green color is predominant the annular band of radius R1 to R2 is
in the upper part of the chromaticity chart the calculated. The center of the image is the center
equation of the line will separate green plant point of the annular band. This user defined
from the rest of the image by varying Y band keeps on sliding towards the edge of the
intercept. The original images are as shown in image. A plot of power capsulated in the
Fig. 4, Fig. 5, and Fig. 6. The segmented image annular band verses radius is plotted. The
is shown in Fig. 7. relative frequency is observed. This relative
frequency forms the basis of identification plants
The use of spatial masks for image processing [ 5 ] . A graph power spectrum verses radius was
usually is called spatial filtering and the masks plotted. One way to analyze spatial variations is
themselves are called spatial filters. Smoothing the decomposition of an image functions into a
filters are used for blurring and for noise set orthogonal functions, one such set being
reduction. Blurring is used for removal of small fourier (sinusoidal) functions. The fourier
details from an image prior to object extraction. transform may be used to transform the intensity
The extra information present in the image like image into the domain of spatial frequency Fig.
ground, stones has to be removed as it may lead 9.
us to wrong results fig. 8. One of the principal
difficulties of the smoothening method discussed Let f(x) be a continuous function of a real
is that it blurs edges and other sharp details. The variable x. The fourier transform of f(x),
method used is particularly effective when the denoted by f[f(x)], is defined by
noise pattern is due to small pebbles, soil
patches with similar color with plant that
consists of strong spike like component. The
f [(f(x))]= F(u)= Jz f(x)'-'2*ux1dx (2)
where j=d- 1
characteristics to be preserved is texture. The
window size and threshold level is selected by
If a texture is at all spatially periodic or
the user. If more information in terms of gray directional, its power spectrum will tend to have
levels is present in the window then the window peaks for corresponding spatial frequencies.
is replaced by the texture information from the These peaks can form the basis of features of a
black and white input image. This method filters pattern recognition discriminator. In this
noise or scattered patches created due to stones method the fourier space is partitioned in to
on the ground. Software for segmentation, radial bins. These bins together with fourier
spatial filter, and thresholding was developed power spectrum are used to define features. if F
using C language. is the fourier transform, the fourier power
spectrum is given by IF12. Radial features are
given by
III. Frequency Domain Method
Vrlr2= fJ IF(u,v)12}dudv (3)
The fourier transform is a single-band
processes. The 3-band color images needed to be
Where the limits of integration are defined by r2
adapted by either selecting only one of the
IF(u,v)l*dudv,r2 5u2, v2< rz, 0 l u .
original
- red, green or blue (R, G, or B) bands, or
generating a forth "band". Fourth band which is
SHULIN, D.er al.: IMAGE PROCESSING METHODS FOR IDENTIFYING SPECIES OF PLANTS 40.5

Where [r1,r2]is one of the radial bin and V is The model changes only when surfaces are
the vector defined by different values of r l and considered.
r2. Radial features are co-related with texture
coarseness. A smooth texture will have high S(e) = he"-D' (4)
values of Vrlrz for small radii, where-as a Where S(e) = Surface area. D= 2.00 implies a
coarse, grainy texture will tend to have smooth planer surface and Dz2.99 very rough
relatively higher values for larger radii. 3D surface.

IV. Fractal Dimension Since the image is sampled at equal spatial


intervals, methods for determining D from
Fractals are a class of mathematical functions continuous functions could not be directly
which have found use in classification of natural utilized. The surface of the image was
shapes and textures. The fractal dimension D is considered as a set of rectangular solids with
computed of the black and white plant image. different heights, but with square sides of length
By comparing the fractal dimension of different e. Thus the surface area was defined as
variety of plants the program identifies the type
of plant in the image. Fractal geometry provides
both a description and a mathematical model for
many of the seemingly complex forms found i n
nature[l0]. Shapes such as coastlines, Where f(x,y) is the image intensity function.
mountains and clouds are not easily described by This implies that the surface area is the sum of
traditional Euclidean geometry. Fractals are the top area plus the area of two sides of each
appropriate with natural shapes they work with cube for all the cubes in the image. The area was
recursive algorithm [2]. Generalizing for an computed for e=1..8. Once the area vs. e data
object of N parts, each scales down by a ratio r was produced for each image, a linear regression
from the whole we get, NrD = 1 which was performed on log(e) vs. log(S(e)) relation.
defines the fractal Dimension D. Where D = log The fractal Model was considered good if the
N/(log llr). regression co-relation was high. The slope of the
line after linear regression gives the fractal
The fractal model is used to relate a metric dimension of the plant image. If the relationship
property such as length of a line or area of a between x and y co-ordinates appears to be
surface to elemental length. For e.g. If the reasonably linear, we can postulate a linear
length of a coastline may be determined by equation which best fits the sample data . We
placing a lkm ruler end to end along the can estimate a and b by using the criterion of
shoreline. If a 0.5 km ruler is used for the same least squares of vertical distances from the
coast, the measured length will be longer. If the sample points to the regression line y= a + bx.
increase in length follows a consistent rule over Fig. 1 shows the Fractal Dimension for the
a range of elemental ruler then it may be called preprocessed images.
a measure of the coastline's geometrical
properties[2]. The functional relationship
between ruler size and length is L(e)=he"-D'.
Where
L(e)= Total length
e = Elemental ruler length
D = Fractal Dimension
h = Scaling constant.

Image1 Image2 Image3 Image4


1.094737 1.157957 1.389290 1.380665 Binary
1.1 13819 1.064315 1.136459 1.142405 Textured
Fig. 1 Fractal Dimension
406 IEEE WESCANEX '95 PROCEEDINGS

V. Co-occurrenceMatrix Method CO-occurrence matrix creates a unified set of


operators capable of performing both the global
When small image areas from black and and local analysis tasks. CO-occurrence matrix
white photograph are independently processed gives the relative frequency of a transition from
by computer, texture and tone are the most each gray level i to the gray level j, given the
important. Gray tone Spatial-Dependence displacement vector i.e., a type of edge
Matrices is calculated from the image. All the information. Since each co-occurrence matrix is
textural features are extracted from these gray- a second order probability distribution, the
tone spatial dependence matrices [6]. The image distribution of gray levels i.e., a normalized gray
texture when decomposed has two dimensions level histogram can be obtained from each by
gray level primitives or local properties partial summation. Finally co-occurrence
constituting the image texture and spatial matrices do contain at least some rudimentary
organization of the gray level primitives. Gray shape information. The number of computation
level primitives includes both its gray level and required is directly proportional to the number
gray level properties. The image texture can be of resolution cells present in the image. In
described as by number, type of primitive and comparison, the number of operations are of the
their spatial layout. To make our plant canopy order of nlog(n) if fourier transform is used to
image close to macro texture we segment the extract the textural feature information.
image and remove ground information. Texture Softwarewise, to compute GLC matrix one
cannot be analyzed without a frame of reference needs to keep only two lines of image data i n
in which the gray level primitives begin to have core memory at a time which saves storage
distinct organization and shape. So we must space. Textural Features Extracted from GLC
start co-relating graylevel-textural are inter- Matrix
related. In the scanned image gray level and
texture sometimes tend to dominate each other.
I I ~mage~ 1 1mage2 I 1mage3 1 1mage4

Fig. 2 Binary Image1

CO-relation

Fig. 3 Binary Image2


SHULIN. D. et U / . : IMAGE PROCESSING METHODS FOR IDENTIFYING SPECIES OF PLANTS 407

VI. CONCLUSION image2 is given. The method worked accurately


for all the images.
Three methods were evaluated for REFERENCES
identification of different plant species. The G. Shropshire and K.,Bargen, ‘‘ Fourier
Fourier Transform of the preprocessed image and Hadamard Transforms for detecting
was computed. The fourier image in frequency weeds in video images,” American Society
domain was divided in different radial bins from of Agricultural Engineers, Paper No. 89-
the center of the image. The graphs were plotted 7522,1989.
between the power spectrum and the radius of B.B. Mendelbrot, “ FractakForm, Chance
the annular bin. The graph of the first two plant and Dimension”, Freeman, 1977.
images showed a completely different trend R,C.Gonzales and R.E.Woods, Digital
which can also be categorized as different Image Processing, Addison-Wesley
signatures in Fig. 11 and Fig. 12. While the Publishing Company, 1992.
other two images which are taken from the same R.M.Haralick and L.G.Shapiro, Computer
species of plants have a similar trend. The result and Robot Vision, Vol I, Addison-Wesley
was similar in the case of the binary and a Publishing Company, Massachusetts,
textured image. To analyze the graph trend 1992.
software program involving the binary image D.H.Ballard and C.M.Brown, Computer
was faster than textured image. The results were Vision, Prentice-Hall Inc., New Jersey,
highly depended on the time when the image 1982.
was grabbed. R.M. Haralick, K.Shanmugam and I.
Dinstein, “Textural Fratures for Image
Fig. 1 shows the fractal Dimension of all four Classification,” IEEE transactions on
images. Binary image shows more difference in systems, man, and cybernetics, Vol. SMC-
fractal dimension for different images than 3 , No. 6, Nov 1973.
textured image. The fractal Dimension for D.E. Guyer, C.C. Martha, “Plant Features
similar imagel and image2 are different while Measurements with Machine Vision and
for the similar ones image3, image4 are almost Image Processing,” ASAE, Paper No. 88-
same. The results vary highly if the orientation 1541, 1988.
of the image was changed. D.E.Guyer, G.E. Miles, “ Computer Vision
and Image Processing for Plant
The texture analysis method using the co- Identification,” ASAE, Paper No. 84-1632,
occurrence matrix gives promising results and 1986.
takes less time to compute than the Fourier R.J. Hagger, C.J. Stent, “ A prototype hand
method. The identification is more accurate if held Patch Sprayer for killing weeds,
the image gray levels are preserved. However, activated by spectral differences in
this is less important with the Fourier method. croplweed canopies,” J. Agri. Engg. Res.
The table in Fig. 2 and Fig. 3 is the texture 20, 349-358, 1983.
parameters extracted from co-occurence matrix T. Lundahl, W.J. Ohley, “Analysis and
from binary and textured images. The table for interpolation of Angiographic Images by
the different plant species for imagel and use of Fractals,” IEEE 0276-
6574/85/0000/03550 1, 1985
408 IEEE WESCANEX ' 9 5 PROCEEDINGS

Fig. 6 Plant3

l:r-.-
Fig. 7 Segmented plant 1 Fig 8 Filtered Plantl Fig. 9 FFT Plantl

0" 150
100 Series1

50
0
0 io 20 30 40 50 M) 70 Bo 90 100 110 120

RadlUS

Fig. 10 Binary Plantl Fig. 11 Frequency Domain Analysis


Binary Image2
600 ~ - ;

0 10 20 30 40 50 60 70 80 90 100 110 120

Radius

Fig. 12 Frequency Domain Analysis

You might also like