CN106897724A - A kind of plant leaf identification method based on contour line shape facility - Google Patents

A kind of plant leaf identification method based on contour line shape facility Download PDF

Info

Publication number
CN106897724A
CN106897724A CN201510961226.2A CN201510961226A CN106897724A CN 106897724 A CN106897724 A CN 106897724A CN 201510961226 A CN201510961226 A CN 201510961226A CN 106897724 A CN106897724 A CN 106897724A
Authority
CN
China
Prior art keywords
chord length
matrix
length
shape
contour line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510961226.2A
Other languages
Chinese (zh)
Inventor
王斌
曾范清
叶梦婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Finance and Economics
Original Assignee
Nanjing University of Finance and Economics
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Finance and Economics filed Critical Nanjing University of Finance and Economics
Priority to CN201510961226.2A priority Critical patent/CN106897724A/en
Publication of CN106897724A publication Critical patent/CN106897724A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/469Contour-based spatial representations, e.g. vector-coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

Plant leaf blade identification is the hot issue in image procossing and pattern identification research field.But there is bottleneck problem in plant leaf blade identification, i.e., similar blade interior difference is big, and difference is small between inhomogeneity blade.The present invention proposes a kind of plant leaf identification method based on contour line shape facility-inside and outside chord length characteristic vector (Inner&Outer Characteristic Vector) and attempts to solve this bottleneck problem to a certain extent, belongs to digital image processing techniques field.The length of each section of string of the target profile curve of extraction is divided into internal chord length and outside two parts of chord length by the present invention according to target region occupied in the picture.Internal chord length is intended to describe the convex characteristic of contour line, and outside chord length is then conceived to the recessed feature of Extract contour line, and the inside chord length of multiple yardsticks and outside chord length have respectively constituted the interior chord length matrix and outer chord length matrix of description shape.Interior chord length matrix and outer chord length matrix are pulled into one-dimensional vector respectively, combination couples together composition IOCV.The vision system of the mankind is very sensitive to shape convex-concave characteristic, cognitive using this, and IOCV proposed by the present invention will be greatly improved to the distinguishing ability of target shape.

Description

A kind of plant leaf identification method based on contour line shape facility
Technical field
The present invention relates to a kind of description method of leaf image contour line shape facility, belong to digital image processing techniques field.
Background technology
The present invention is the feature extraction based on binary digital image, and the leaf image collected in reality often RGB true color images, need for true color image to be converted to black and white binary image that (shape area pixel value is 1, and background area pixels value is for 0).Obtain binary digital image and generally include following steps:
1st, successively by the digital picture that the scanned instrument generation euchroic of original analog leaf image is color, then digital picture is sent in computer by connecting mouth, obtains and complete whole image, build RGB leaf image database;
2nd, coloured image f (x, y) is converted to gray level image, is, according to 3 color component relations of red, green, blue, to be converted into YUV black and white gray scale color model by the very color color color models of RGB and obtain h (x, y),
H (x, y)=0.299*R+0.587*G+0.144*B (1)
3rd, by Two-peak method threshold process, according to the difference of background, adjust automatically threshold value, the image after normalization is to be converted into bianry image g (x, y) to gray level image h (x, y), and T is threshold value.The gray value of each pixel in image is compared with threshold value, shape area is split from background, to carry out the boundary tracking of next step.
4th, the tracking of longest edge circle is carried out to bianry image g (x, y).The bianry image of closing of the frontier can extract border line coordinates with Contour tracing algorithm.The core of Edge tracking of binary image extraction algorithm is exactly to empty target internal point.If a stain in target image, when its 8 connected region consecutive points are all stain, then the point is deleted.The basic ideas of tracking are:First from top to bottom, data image is scanned line by line from left to right.The first stain for scanning as profile first boundary point, and savepoint coordinate (x, y).Then choose along upper left side as initial search direction.If top point is stain, then record saves as boundary point, otherwise rotates 45 degree according to the direction of search clockwise.Then traveled through according to above-mentioned steps, until finding first for stain.This stain is then set to new boundary point.It is rotated by 90 ° counterclockwise on current search direction.Search by that analogy preserves next stain coordinate, untill persistently traveling through until finding initial boundary point.If there is the boundary line of multiple target objects in picture, we are given tacit consent to it is contemplated that the border of the curve most long in image.
The method of Shape Classification is divided into two kinds, and a kind of is the method based on shape area, and another kind is the method based on shaped wheel profile.Method based on region needs to obtain all information of image pixel, and amount of calculation and amount of storage are all than larger;Method based on contour line only needs to obtain the Pixel Information of shaped wheel profile, and amount of calculation is small, easy extraction and storage, and description of construction more compacts.And profile wire shaped most discrimination, human vision can just make a distinction often through contour of object wire shaped to it.In sum, the description method of shaped wheel profile has more advantage.
In order to effectively describe profile wire shaped, there has been proposed a series of classical contour line shape descriptors.The sorting technique of contour line shape descriptor has a lot, and relatively conventional two methods are:(1) difference based on description son description scope, is divided into global description's and local description;(2) difference based on description subrepresentation space, is divided into spatial domain description and frequency domain describes son.Table 1 gives some classical contour line shape description methods according to the sorting technique of spatial domain and frequency domain.
Table 1. some classical contour line shape description methods
And wherein Fourier descriptor (Fourier Descriptor) is a kind of classical shape description method based on contour line.Two-dimensional shapes contour line is expressed as one-dimensional profile line function by the method first, also known as shapes ignature (shape signature), the characteristic vector of description shape is constituted with the coefficient of the Fourier transform of the function.FD calculates the characteristics of simple, definition is clear, energy is concentrated to low frequency, is with one of widest shape descriptor.
It is proposing in recent years as follows to the constitution step of description profile wire shaped similar herein MDM description:
Step 1:Following the trail of maximum boundary the shaped wheel profile for extracting carries out uniform sampling, and sampled point number is N, constitutes sampling point set C={ P1, P2..., PN, Pi=(xi, yi);
Step 2:Calculate point centrostigma PiHere it is Euclidean distance to remaining the N-1 chord length distance of point, obtains L1, L2..., LNSection chord length, as the i-th row of matrix D, allows i to change to n from 1 successively;
Each row of step 3, spin matrix D so that first element of each row is 0.Structural matrix D in this waym, DmThe first row element be all 0 because its N number of point for representing is to the distance of its own, the second row element represents the distance between two neighboring point;
Step 4, the every a line ascending order arrangement to Dm, produce matrix Dms.Due to the matrix D after sequencemsIt is symmetrical on (n/2) row, to avoid redundancy, choose matrix DmsThe second row to (n/2), construct MDM matrixes.
It is a kind of conventional effective ways that profile wire shaped is portrayed using chord length.Human visual system is very sensitive for the convex-concave characteristic of profile wire shaped, is the very effective feature for target identification.Cognitive based on this, the distinguishing ability for extracting the inside and outside chord length characteristic vector of profile wire shaped convex-concave characteristic will be greatly improved.Every section of string of contour line is fallen and be divided into two parts in the inside and outside of shape area by the present invention according to it, and the chord length inside shape area that falls is referred to as interior chord length, and the chord length outside shape area that falls is referred to as outer chord length.Interior chord length is used for describing the convex feature of shaped wheel profile, and outer chord length is used for describing the recessed characteristic of contour line.And multiple yardsticks upper contour line convex-concave characteristic of level is portrayed, can be from details to entirety and thick to carefully excavating contour line shape facility.Inside and outside chord length is effectively combined just can be from part to the convex-concave characteristic for globally extracting profile wire shaped.In sum, it may be considered that the distinguishing ability for extracting description of profile wire shaped convexo-concave characteristic will be greatly enhanced, so that difference is big in class in the identification of solution plant leaf blade to a certain extent, the small bottleneck problem of class inherited.
The content of the invention
The technical problem to be solved in the present invention is to propose a kind of shape descriptor that can extract profile wire shaped available characteristic-convex-concave characteristic, so as to more efficiently be described to profile wire shaped, improves the discrimination of plant leaf blade.
The present invention uses following technical scheme:
True color RGB image is converted into bianry image, the digital picture of binaryzation can be represented with following form:
Here x, y represent the transverse and longitudinal coordinate of target image shape.D is target shape distributed areas in the picture.F ' represents the shaped wheel profile for extracting.Point set C={ P are constituted by uniform sampling counterclockwise to the profile line boundary most long that tracking is obtainedi(xi, yi), i=1,2 ..., N, N takes even number here, because target profile curve is closure, here PN+i=Pi.To a point P1 (x on contour line1, y1), along mobile s segmental arc counterclockwise to point P2 (x2, y2), its chord length is represented with equation below:
Falling to cut string shape area is inside and outside according to the string.The length l of the part that the string falls in shape area(l)Represent, be called interior chord length;The length l fallen outside shape area(O)Represent, be called outer chord length.Make x1=min { x1, x2, x2=max { x1, x2, y1=min { y1, y2, y2=max { y1, y2, then l(l)And l(O)Can be represented with following form:
l(O)=l-l(l) (6)
Here A=(y2-y1)/l, B=(x1-x2)/l, C=(x1y2-y1x2)/l.δ () represents Dirac functions.It is pointed out that Ax+By+C=0 is point P here1With point P2Connected normal form of a straight line equation.Accompanying drawing 1 is the schematic diagram of inside and outside chord length, and the part of solid marks represents interior chord length, and the part of dashed lines labeled represents outer chord length.
Point set C midpoint P of the present invention to shaped wheel profile uniform sampling1(x1, y1) and point P2(x2, y2) calculating of the inside and outside chord length of single chord length that is connected, specifically include following steps:
Step A, use formulaCalculate point P1With point P2Between chord length, i.e., with Euclidean distance, this measures to represent the chord length between 2 points;
Step B, will respectively calculate (x1-x2) and (y1-y2) value that obtains takes absolute value and distinguish assignment and X and Y, takes the greater and assignment and N in X and Y;
Step C, the size for comparing X and Y, if X >=Y, perform step D, otherwise, perform step J;
Step D, compare x1And x2Size, if x1> x2, then step E is performed, otherwise, perform step F;
Step E, x is exchanged respectively1、x2And y1、y2Size, even if point P1Represent P1、P2The less pixel of transverse and longitudinal scale value in 2 points, point P2Represent the larger pixel of abscissa value;
Step F, i is entered as 1, and performs step G;
Step G, calculating λ=i/ (N-i),Calculate (y1+λ*y2)/(1+ λ) and round assignment withWhether step H, i adds 1 and assignment and i, and judges i more than N-1, if it is not, step G is then performed, if so, then performing step N;
Step I, compare y1And y2Size, if y1> y2, then step J is performed, otherwise, perform step K;
Step J, y is exchanged respectively1、y2And x1、x2Size, even if point P1Represent P1、P2The less pixel of vertical scale value, point P in 2 points2Represent the larger pixel of ordinate value;
Step K, i is entered as 1, and performs step L;
Step L, calculating λ=i/ (N-i),Calculate (x1+λ*x2)/(1+ λ) and round assignment with
Whether step M, i adds 1 and assignment and i, and judges i more than N-1, if it is not, then performing step L;If so, then performing step N;
Step N, by x2Assignment withy2Assignment withK is entered as 0, i and is entered as 1;
Step O, calculating k=k+f (xi, y1);
Whether step P, i adds 1 and assignment and i, and judges i more than N, if it is not, step O is then performed, if so, then performing step Q;
Step Q, calculating r=k/N, return to interior chord length l(I)=r*l, outer chord length l(o)=(1-r) * l.
Order point P1Subscript change to every bit on N, i.e. contour line all as a starting point from 1, calculate starting point Pi(i=1,2 ..., N) moves s isometric segmental arc point of arrival P counterclockwisei+sCorresponding string.By calculating each section of inside and outside chord length of string, we obtain interior chord length sequenceWith outer chord length sequenceIt is pointed out that because contour line is closure, any one section of string all corresponds to arc length and be respectively s unit length and N-s the two of unit length sections of arcs, to avoid data redundancy, we allow arc length s values 1,2 ..., M=N/2.Thus two matrixes of M × N, interior chord length matrix ICM and outer chord length matrix OCM are obtained.Inside and outside chord length matrix is pulled into one-dimensional vector respectively, inside and outside chord length characteristic vector (IOCV) of just constitute that two combination of eigenvectors being got up.
Here segmental arc number is exactly s, represents yardstick level.Accompanying drawing 3 for contour line (128 sampled points) 5 yardsticks level inside and outside chord length an example (from left figure to right figure, yardstick level be followed successively by s=4,8,16,32).If observed with the short segmental arc that small yardstick observes blade wheel profile, i.e. contouring line, it can be found that they are mostly convex.The inside and outside chord length that leftmost figure (correspondence yardstick s=4) in the figure is marked has reacted this visual characteristic of contour line well, and in the figure, only least a portion of string has the part (marked with dotted line) outside shape area.And the figure (s=8 is observed using big yardstick, 16,32), when i.e. the big segmental arc of contouring line is observed, it can be found that the recessed characteristic of contour line, s=8 in the figure, 16,32 three figures, have considerable string section or fully fall in the outside of shape area, and this characteristic is consistent with the Visual Observations Observations of people.
Contour line shape description method proposed by the present invention, interior chord length and outer chord length two parts are divided into by single chord length.Interior chord length describes the convex characteristic of profile wire shaped, and outer chord length describes the recessed characteristic of profile wire shaped.Human visual system is very sensitive to the convex-concave characteristic of profile wire shaped, therefore contour line convex-concave characteristic is very effective contour line shape recognition feature.Cognitive based on this, the distinguishing ability for extracting the inside and outside chord length characteristic vector of profile wire shaped convex-concave characteristic will be greatly enhanced.Compared to the existing similar multiple dimensioned distance matrix (Multiscale Distance Matrix) merely with chord length Extracting contour shape, the profile wire shaped convex-concave characteristic for extracting more distinguishing ability proposed by the present invention, inside and outside chord length characteristic vector (Inner&Outer Characteristic Vector) of construction, contour line style characteristic can be more efficiently portrayed, recognition capability is stronger.
Brief description of the drawings
Fig. 1 is the direct feature recognition FB(flow block) of typical image;
Fig. 2 is dimensionality reduction property data base construction FB(flow block) in leaf image identification, and the numeral of circles mark represents the execution step of construction dimensionality reduction property data base;
Fig. 3 is inside and outside chord length schematic diagram, and wherein solid line represents interior chord length, and dotted line represents outer chord length;
Fig. 4 for contour line (128 sampled points) 5 yardsticks level inside and outside chord length an example (from left figure to right figure, yardstick level be followed successively by s=4,8,16,32).
Fig. 5 is 15 class plant sample black white images in Swedish blade databases.
Fig. 6 is 100 class plant sample black white images in Leaf100 blade databases.
Fig. 7 is 12 blade black white images of similar plant species in Leaf100
Specific embodiment
Technical scheme is described in detail below in conjunction with the accompanying drawings:
Accompanying drawing 1 is typical image dimensionality reduction identification process block diagram, and wherein dotted line frame represents existing similar contour line shape description method, and solid box is institute's contour line shape description method of the present invention.Apply the present invention to two leaf image databases, respectively classical Swedish blades database and we oneself from the Leaf100 databases of field acquisition, and be compared to the discrimination of similar multiple dimensioned distance matrix.Specifically according to following steps:
The discrimination of step 1, present invention experiment measuring and calculating plant leaf blade, therefore blade database is divided into two subsets of training set and test set.
A leaf image is concentrated in step 2, input test:
Step 201, judge input leaf image whether be RGB true color images, if so, then perform step 202, if it is not, then perform step 203;
Step 202, the very color color color models of RGB are converted into YUV black and white gray scale color model using formula (1) obtain h (x, y);
Step 203, judge input leaf image whether be bianry image, if then perform step 3, if it is not, then perform step 204;
Step 204, gray level image h (x, y) are converted into bianry image by Two-peak method threshold process, such as shown in formula (2).
Step 3, two-value leaf image can be expressed as formula (3) form, and carry out maximum boundary tracking to bianry image, extract shaped wheel profile.Uniform sampling is carried out to shaped wheel profile, point set C={ P are constitutedi, i=1,2 ..., N.Here we take N=128;
Step 4, make lsiRepresent the point P from profilei(xi, yi) set out, another point P is reached in the counterclockwise directioni+s(xi+s, yi+s) length of the string of segmental arc passed through.Calculate string lsiThe length that the string for being connected falls inside shape area and the length fallen outside shape area, use interior chord length respectivelyWith outer chord lengthRepresent.
For two point P in point set C1(x1, y1) and P2(x2, y2), calculating interior chord lengths and outer chord length of the single chord length for being connected at 2 points of, can be calculated by following specific steps:
Step 401, use formulaCalculate point P1With point P2Between chord length, i.e., with Euclidean distance, this measures to represent the chord length between 2 points;
Step 402, will respectively calculate (x1-x2) and (y1-y2) value that obtains takes absolute value and distinguish assignment and X and Y, takes the greater and assignment and N in X and Y;
Step 403, the size for comparing X and Y, if X >=Y, perform step 404, otherwise, perform step 410;
Step 404, compare x1And x2Size, if x1> x2, then step 405 is performed, otherwise, perform step 406;
Step 405, x is exchanged respectively1、x2And y1、y2Size, even if point P1Represent P1、P2The less pixel of transverse and longitudinal scale value in 2 points, point P2Represent the larger pixel of abscissa value;
Step 406, i is entered as 1, and performs step 407;
Step 407, calculating λ=i/ (N-i),Calculate (y1+λ*y2)/(1+ λ) and round assignment with
Whether step 408, i add 1 and assignment and i, and judge i more than N-1, if it is not, step 407 is then performed, if so, then performing step 414;
Step 409, compare y1And y2Size, if y1> y2, then step 410 is performed, otherwise, perform step 411;
Step 410, y is exchanged respectively1、y2And x1、x2Size, even if point P1Represent P1、P2The less pixel of vertical scale value, point P in 2 points2Represent the larger pixel of ordinate value;
Step 411, i is entered as 1, and performs step 412;
Step 412, calculating λ=i/ (N-i),Calculate (x1+λ*x2)/(1+ λ) and round assignment with
Whether step 413, i add 1 and assignment and i, and judge i more than N-1, if it is not, then performing step 412;If so, then performing step 414;
Step 414, by x2Assignment withy2Assignment withK is entered as 0, i and is entered as 1;
Step 415, calculating k=k+f (xi, yi);
Whether step 416, i add 1 and assignment and i, and judge i more than 414, if it is not, step O is then performed, if so, then performing step 417;
Step 417, calculating r=k/N, return to interior chord length l(l)=r*l, outer chord length l(o)=(1-r) * l.
Step 5, fixed s, make i change to N from 1, and we obtain the N sections of string being all corresponding to s unit segmental arc, i.e. every bit on contour line as a starting point.By calculating each section of inside and outside chord length of string, we obtain interior chord length sequenceWith outer chord length sequenceIt is pointed out that because contour line is closure, any one section of string all corresponds to arc length and be respectively s unit length and N-s the two of unit length sections of arcs, to avoid data redundancy, we allow arc length s values 1,2 ..., M=N/2.Here N=128, M=64, thus obtain the matrix of two 64 × 128, are referred to as interior chord length matrix ICM and outer chord length matrix OCM;
Step 6, inside and outside chord length characteristic vector ICM and OCM is set to meet translation, selection and flexible geometric invariance.Specifically include following steps:
Step 601, here chord length are calculated with the Euclidean distance between 2 points, and Euclidean distance is relative distance, it is easy to prove that the inside and outside chord length of string keeps constant.Therefore, the interior chord length matrix and outer chord length matrix of target shape have the inherent translation invariance to target;
Step 602, when target shape is rotated, the length value of inside and outside chord length will not change.But rotation can make the initial point that contour line is used change, when inside and outside chord length characteristic vector is calculated, can make matrix that cyclic shift occurs per a line.As the row of matrix i-th, the element of j row move to the i-th row, j+t is arranged, wherein 1≤t≤n is displacement.
Fourier descriptor is a kind of classical description method based on contour shape, and rotation normalizing is carried out using the method, can retain the relative position relation between matrix row element.Specific practice is as follows:Regard matrix as one-dimensional discrete signal per a line, and carry out one dimensional fourier transform, original row is replaced with the mould of Fourier transform coefficient.One-dimensional discrete signal Fourier transform is as follows.
Here occluding contour the point set { (x for samplingi, yi) an one-dimensional sequence of complex numbers { C (i) } can be regarded as, wherein we make Ci=xi+jyi, it is expressed as { C (i) }, i=1,2 ..., 128;
Step 603, when target shape occur stretching be that object function f (x, y) is changed into f (α x, α y), if α > 0 be zoom factor.So inside and outside chord lengthWith outer chord lengthIt is changed intoWithWe zoom in and out normalization operation, respectively-A ,-M ,-RA ,-R using four kinds of methods, and (1) carries out normalizing with the maximum of whole matrix to each element of matrix;(2) normalizing is carried out to each element of matrix with the average value of whole matrix;(3) to each element of every a line of matrix, normalizing is carried out with the maximum of the row;(4) to each element of every a line of matrix, normalizing is carried out to it with the average value of the row.It is global yardstick normalizing method that first two is used, and latter two uses local scale normalizing method.It is to be noted that, if there is for making the situation that the maximum or average of normalization operation are 0, such as one its outer chord length matrix of convex shaped wheel profile is 0 matrix, then the row of the matrix or matrix has met the consistency of scaling, it is not necessary to perform normalization operation.It should also be noted that we are with same scaling method for normalizing, and internally outer chord length characteristic vector ICM and OCM are normalized operation respectively.
Step 7, step 6 is normalized after interior chord length matrix ICMNWith outer chord length matrix OCMNW and 1-w is multiplied by respectively.Here w represents weight coefficient, for adjusting contribution of the inside and outside chord length in target identification;
Step 8, two matrix by rowss are pulled into one-dimensional vector respectively, the new one-dimensional vector of composition that two vectors are combined, the vectorial dimension is N2.Referred to as inside and outside chord length characteristic vector (IOCV), can be represented with following form:
Step 9, for test set in each width leaf image, extract every N of leaf image in test set according to step 2 to step 82Dimension one-dimensional vector.C represents plant leaf blade sample number in test set, and K represents each class sample Leaf picture number, and test set Leaf sum is S=C × K.Used as matrix a line, the one-dimensional vector that all leaf images are extracted combines and constitutes a S × N one-dimensional vector that each width leaf image is extracted so in test set2Matrix, referred to as property data base;
The dimension of step 10, the authentication information in order to further extract target shape and compressive features space, traditional linear discriminent analysis (Linear Discriminant Analysis) feature dimension reduction method is applied to the matrix extracted in step 9 by the present invention, construction dimensionality reduction property data base, idiographic flow block diagram such as accompanying drawing Fig. 2.The dimension reduction space of one (C-1) dimension is obtained, has N per in one-dimensional2Individual value (N=128);
Step 11, the S × N for obtaining step 9 extraction2Matrix projection in the dimension reduction space of step 10, obtain the matrix an of S × (C-1) size, referred to as dimensionality reduction database;
Step 12, the leaf image T that will be used for test, perform step 2 to step 8, equally extract N2Dimensional vector;
Step 13, the one-dimensional vector that step 12 is extracted projects to the dimension reduction space in step 10, obtain the row vector of one (C-1) dimension;
The each row of step 14, the one-dimensional row vector for obtaining step 13 successively with matrix in dimensionality reduction database carries out Diversity measure, it is pointed out that every a line of matrix represents the width leaf image X in test set in dimensionality reduction databasei, i=1,2 ..., S.Diversity measure formula is as follows:
Here parameter w is weight coefficient, and for adjusting the contribution of interior chord length and outer chord length in target identification, N is that the number of contour line sampled point is 128, M=N/2=64;
Step 15, selection the jth width leaf image minimum with test image T difference values.The minimum calculating of difference value can be represented with equation below:
Rj=min (Di), i=1,2 ..., S=C × K (8)
Class where calculating the minimum leaf image of selected difference value, and judge whether to belong to same class with the plant leaf blade of test.This recognition methods is referred to as arest neighbors matching (1NN);
Step 16, w is entered as 0.50, adjusts the value for increasing w, 0.05 is increased every time, until w=1.00.Often adjust and once just repeat step 2 to 15.Report knows highest discrimination and obtains the value of weight w corresponding during highest discrimination.
In order to verify the effect of the inventive method, following experiment has been carried out:
1st, experiment condition:
Confirmatory experiment is carried out on one computer, and the allocation of computer is Intel's dual core processor (2300 megahertzs) and 4096 Mbytes of random access memory (RAM), and programming language is Matlab (7.10 version).
2nd, experimental technique:
Part in figure shown in solid box is replaced the part shown in dotted line frame by experiment using primary image identification framework (as shown in Figure 1).This experiment is carried out on two leaf image storehouses, respectively classical Swedish leaf images storehouse (as shown in Figure 3) and we oneself from the Leaf100 leaf images storehouse (as shown in figs. 4 and 5) of field acquisition.Because this experiment is that the identification for carrying out plant leaf blade is classified, therefore two leaf image storehouses need to be respectively classified into two subsets of training set and test set.There are 25 class plant samples in Swedish blade databases, 75 leaf images are included in every class plant sample, we take preceding 50 leaf images in every class plant sample, i.e., 1250 leaf image composing training collection, remaining 625 leaf images constitute test set.There are 100 class plant samples in Leaf100 blade databases, 12 blade figures are included in every class plant sample, we take preceding 6 leaf images in every class plant sample, i.e., 600 leaf image composing training collection, remaining 600 leaf images constitute test sets;
Training process:Successively to the leaf image gray processing in training set, binaryzation is then carried out, maximum boundary tracking is carried out to the leaf image after binaryzation.To each point of shaped wheel profile uniform sampling 128 for extracting.With the point sampled, to concentrate each point set be initial point, calculates the interior chord length and outer chord length of the string that the point of s segmental arc of rotate counterclockwise is connected, and obtains interior chord length sequenceWith outer chord length sequenceHere s represents the segmental arc number that the line of 2 points of connection is passed through, and is defined as yardstick level, and yardstick level is integer.S is allowed to change to M=N/2, chord length matrix ICM and outer chord length matrix OCM in the interior chord length sequence and outer chord length Sequence composition of different scale level from 1.Internally outer chord length characteristic vector is normalized respectively, it is met translation, rotation and flexible consistency.Two normalized matrix by rowss are pulled into one-dimensional vector, and combines that (dimension is N to one new one-dimensional vector of composition2).The N that each width leaf image is extracted in training set2Dimension one-dimensional vector combines constitutive characteristic database.To extract the authentication information of target shape and the dimension in compressive features space, traditional characteristic dimension reduction method LDA is applied in extracted property data base, obtains dimension reduction space.By matrix projection in property data base to dimension reduction space, the compression dimensionality reduction database of more distinguishing ability is extracted.
Test process:A width leaf image in test set extracts N according to the flow in training process2The one-dimensional characteristic vector of dimension, carries out Diversity measure with each row of matrix in dimensionality reduction database successively, it is pointed out that every a line of matrix all corresponds to the width leaf image in test set.Leaf image corresponding to the row matrix minimum with the width image difference opposite sex is the image most like with leaf image for testing that be identifying.
3rd, the evaluation index of experimental result:
Experimental result calculates discrimination using arest neighbors matching (1NN).
Comprise the following steps that:
M width leaf images in correspondence test set, retest process.With to identify otherness minimum, i.e., whether the class where the most similar leaf image is same plant sample class for class where being relatively used for the leaf image tested every time.If so, then by Oi=1;If it is not, then by Oi=0.Therefore O={ OiConstitute the one-dimensional vector that a value is for 0 or 1, i=1,2 ..., m
The formula for calculating discrimination is as follows:
Here sum () represents all elements sum in vector O.
4 and the contrast and experiment of prior art:
Table 2 gives to table 3 and extracted on the Leaf100 leaf images storehouse of classical Swedish leaf images storehouse and our oneself collection respectively chord length characteristic vector inside and outside blade profile wire shaped and describe sub, multiple dimensioned distance description and FD description, and the discrimination after application LDA Feature Dimension Reductions.It is noted herein that, LDA being applied to FD description and takes after Fourier transform (C-1) individual coefficient before one-dimensional functions, C represents the species number of applied leaf image storehouse Leaf.C one dimensional fourier transform coefficient of preceding 2 value is taken for the interference for abating the noise, in experiment.
Wherein-M ,-A ,-RM ,-RA, represent four kinds of method for normalizing respectively, and be followed successively by (1) carries out normalizing with the maximum of whole matrix to each element of matrix;(2) normalizing is carried out to each element of matrix with the average value of whole matrix;(3) to each element of every a line of matrix, normalizing is carried out with the maximum of the row;(4) to each element of every a line of matrix, normalizing is carried out to it with the average value of the row.W represents weight parameter, and expression is contribution of the interior chord length matrix in identification, then 1-w then represents contribution of the outer chord length in identification.Given in table under specific certain method for normalizing, reach the size that highest discrimination is interior chord length matrix contribution.
The discrimination (%) that the LDA dimensionality reduction features that table 2 carry out on Swedish blade databases compare
The discrimination (%) that the LDA dimensionality reduction features that table 3 carry out on Leaf100 blade databases compare
Can be observed by table 2, in Swedish blade databases, the method for MDM and IOCV is superior to the method for FD, and-M, IOCV descriptions describes son and is higher by 6.93 percentage points, 4.4 percentage points, 3.83 percentage points and 2 percentage points than MDM respectively in four kinds of method for normalizing of-A ,-RM ,-RA.Can be so that it has been observed that in Leaf100 blade databases, the method for FD is better than MDM methods, in four kinds of method for normalizing of-M ,-A ,-RM ,-RA, the discrimination of FD description describes son and has been higher by 17.5,11.66,8.33 and 8 percentage points than MDM respectively by table 3;And the method that IOCV methods are better than FD, in four kinds of method for normalizing of-M ,-A ,-RM ,-RA, the discrimination of IOCV description describes son and is higher by 3,6,12.34 and 5.17 percentage points than FD respectively.Therefore, compared to MDM and FD description, IOCV description are obtained in that discrimination higher.

Claims (7)

1. a kind of digital image understanding method, including to the method for target image contour line shape facility description, the description side Method describes profile wire shaped using inside and outside chord length characteristic vector (IOCV), it is characterised in that IOCV can extract wheel The convex-concave characteristic of profile shape.
2. inside and outside chord length characteristic vector as claimed in claim 2 a, it is characterised in that target profile curve is shaped as binaryzation Image can be general be expressed as form:
f ( x , y ) = 1 , i f ( x , y ) ∈ D 0 , o t h e r w i s e e
Here x, y represent the transverse and longitudinal coordinate of target image shape.D is target shape distributed areas in the picture.Extract shape The contour line of f simultaneously carries out uniform sampling to it, constitutes an orderly point set for N number of pixel C={ Pi(xi, yi), i=1,2 ..., N, it is 128 that N takes even number here, because target profile curve is closure, this In PN+i=Pi
3. the orderly point set C of the contour line of bianry image as claimed in claim 2, it is characterised in that make lsiRepresent from profile Point Pi(xi, yi) set out, another point P is reached in the counterclockwise directioni+s(xi+s, yi+s) length of the string of segmental arc passed through, can Represented with equation below:
l s i = ( x i - x i + s ) 2 + ( y i - y i + s ) 2 .
Falling to cut string shape area D is inside and outside according to the string.The part that the string falls in shape area D Length is usedRepresent, be called interior chord length;The length in the outside of shape area D that falls is usedRepresent, be called outer Chord length.
4. chord length in as claimed in claim 3With outer chord lengthCharacterized in that, making x1=min { xi, xi+s, x2=max { xi, xi+s, y1=min { yi, yi+s, y2=max { yi, yi+s, thenWithFollowing form table can be used Show:
l s i ( I ) = ∫ x 1 x 2 ∫ y 1 y 2 f ( x , y ) δ ( A x + B y - C ) d x d y
l s i ( O ) = l s i - l s i ( I )
Here A=(yi+s-yi)/lsi, B=(xi+s-xi)/lsi, C=(xiyi+s-yixi+s)/lsi.δ () represents Dirac functions.Need It is noted that Ax+By+C=0 is point P hereiWith point Pi+sConnected normal form of a straight line equation.Can be with from interior chord length formula Find out, interior chord lengthSubstantially shape function f (x, y) is in line segment PiPi+sOn projected length.
5. chord length in as claimed in claim 4With outer chord lengthCharacterized in that, fixed s, makes i be changed to from 1 N, we obtain the N sections of string being all corresponding to s unit segmental arc, i.e. every bit on contour line as once starting Point string counterclockwise corresponding to mobile s segmental arc.By calculating each section of inside and outside chord length of string, we obtain interior chord length sequence RowWith outer chord length sequenceIt is pointed out that because contour line is closure, institute Arc length is all corresponded to any one section of string and is respectively s unit length and N-s the two of unit length sections of arcs, to avoid data Redundancy, we allow arc length s values 1,2 ..., M=N/2.Thus two matrixes of M × N are obtained, interior chord length is referred to as Matrix ICM and outer chord length matrix OCM.
I C M = l 11 ( I ) l 12 ( I ) ... l 1 N ( I ) l 21 ( I ) l 22 ( I ) ... l 2 N ( I ) ... ... ... ... l M 1 ( I ) l M 2 ( I ) ... l M N ( I ) O C M = l 11 ( O ) l 12 ( O ) ... l 1 N ( O ) l 21 ( O ) l 22 ( O ) ... l 2 N ( O ) ... ... ... ... l M 1 ( O ) l M 2 ( O ) ... l M N ( O )
, it is as claimed in claim 7 in chord length matrix ICM and outer chord length matrix OCM, it is characterised in that internal outer chord length It is normalized respectively, inside and outside chord length characteristic vector ICM and outer chord length matrix OCM met translation, selected and stretch The geometric invariance of contracting.
6. the interior chord length matrix ICM after normalizing as claimed in claim 5NWith outer chord length matrix OCMN, its feature exists In, two normalization are pulled into one-dimensional vector by row respectively, inside and outside chord length vector is combined composition contour line convex concave Description of shape characteristic, we term it inside and outside chord length characteristic vector (IOCV).
7. the interior chord length characteristic vector and outer chord length characteristic vector that Euclidean distance as claimed in claim 6 is represented are using diversity factor Contribute different when comparing, profile wire shaped convexo-concave characteristic adjusts interior chord length and outer chord length with weight w and 1-w when merging Contribution difference of the characteristic vector in identification.
CN201510961226.2A 2015-12-18 2015-12-18 A kind of plant leaf identification method based on contour line shape facility Pending CN106897724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510961226.2A CN106897724A (en) 2015-12-18 2015-12-18 A kind of plant leaf identification method based on contour line shape facility

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510961226.2A CN106897724A (en) 2015-12-18 2015-12-18 A kind of plant leaf identification method based on contour line shape facility

Publications (1)

Publication Number Publication Date
CN106897724A true CN106897724A (en) 2017-06-27

Family

ID=59189961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510961226.2A Pending CN106897724A (en) 2015-12-18 2015-12-18 A kind of plant leaf identification method based on contour line shape facility

Country Status (1)

Country Link
CN (1) CN106897724A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993213A (en) * 2019-03-06 2019-07-09 上海工程技术大学 A kind of automatic identifying method for garment elements figure
CN110443826A (en) * 2019-07-10 2019-11-12 佛山科学技术学院 A kind of virtual reality fusion emulation experiment mistake householder method and system
CN111088597A (en) * 2019-12-23 2020-05-01 杭州晶一智能科技有限公司 Contour line analysis-based yarn state detection method
CN111680571A (en) * 2020-05-14 2020-09-18 华南农业大学 LDA (latent Dirichlet Allocation) dimensionality reduction-based multi-feature fusion plant leaf identification method
CN113436207A (en) * 2021-06-28 2021-09-24 江苏特威机床制造有限公司 Method for quickly and accurately extracting line structure light stripe center of regular surface

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055620A (en) * 2006-04-12 2007-10-17 富士通株式会社 Shape comparison device and method
CN101359366A (en) * 2008-07-28 2009-02-04 同济大学 Pattern matching recognition system and implementing method thereof
CN101916382A (en) * 2010-07-30 2010-12-15 广州中医药大学 Method for recognizing image of plant leaf
RU2495357C2 (en) * 2010-12-02 2013-10-10 Общество с Ограниченной Ответственностью "Научно-технический центр "Версия" Method of masking mobile objects with artificial vegetation, apparatus for artificial branches and apparatus for attaching branches to mobile object for implementing said method
CN104361342A (en) * 2014-10-23 2015-02-18 同济大学 Online plant species identification method based on geometric invariant shape features
CN104850822A (en) * 2015-03-18 2015-08-19 浙江大学 Blade identification method based on multi-characteristic fusion simple background
CN104881676A (en) * 2015-05-05 2015-09-02 昆明理工大学 Face image convex-and-concave pattern texture feature extraction and recognition method
CN104978582A (en) * 2015-05-15 2015-10-14 苏州大学 Contour chord angle feature based identification method for blocked target

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055620A (en) * 2006-04-12 2007-10-17 富士通株式会社 Shape comparison device and method
CN101359366A (en) * 2008-07-28 2009-02-04 同济大学 Pattern matching recognition system and implementing method thereof
CN101916382A (en) * 2010-07-30 2010-12-15 广州中医药大学 Method for recognizing image of plant leaf
RU2495357C2 (en) * 2010-12-02 2013-10-10 Общество с Ограниченной Ответственностью "Научно-технический центр "Версия" Method of masking mobile objects with artificial vegetation, apparatus for artificial branches and apparatus for attaching branches to mobile object for implementing said method
CN104361342A (en) * 2014-10-23 2015-02-18 同济大学 Online plant species identification method based on geometric invariant shape features
CN104850822A (en) * 2015-03-18 2015-08-19 浙江大学 Blade identification method based on multi-characteristic fusion simple background
CN104881676A (en) * 2015-05-05 2015-09-02 昆明理工大学 Face image convex-and-concave pattern texture feature extraction and recognition method
CN104978582A (en) * 2015-05-15 2015-10-14 苏州大学 Contour chord angle feature based identification method for blocked target

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
CHAOJIAN SHI 等: "Shape Retrieval Using Statistical Chord-Length Features", 《PSIVT 2006》 *
HAIBIN LING 等: "Shape Classification Using the Inner-Distance", 《IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE》 *
RONGXIANG HU 等: "Multiscale Distance Matrix for Fast Plant Leaf Recognition", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 *
TOMASZ ADAMEK 等: "A Multiscale Representation Method for Nonrigid Shapes With a Single Closed Contour", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 *
叶梦婕: "轮廓线形状的多尺度描述及其在植物叶片图像检索中的应用", 《电脑知识与技术》 *
杨亚飞 等: "一种基于多尺度轮廓点空间关系特征的形状匹配方法", 《自动化学报》 *
王斌: "一种基于多级弦长函数的傅立叶形状描述子", 《计算机学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993213A (en) * 2019-03-06 2019-07-09 上海工程技术大学 A kind of automatic identifying method for garment elements figure
CN110443826A (en) * 2019-07-10 2019-11-12 佛山科学技术学院 A kind of virtual reality fusion emulation experiment mistake householder method and system
CN111088597A (en) * 2019-12-23 2020-05-01 杭州晶一智能科技有限公司 Contour line analysis-based yarn state detection method
CN111088597B (en) * 2019-12-23 2021-08-13 安徽尧舜智能袜业有限公司 Contour line analysis-based yarn state detection method
CN111680571A (en) * 2020-05-14 2020-09-18 华南农业大学 LDA (latent Dirichlet Allocation) dimensionality reduction-based multi-feature fusion plant leaf identification method
CN113436207A (en) * 2021-06-28 2021-09-24 江苏特威机床制造有限公司 Method for quickly and accurately extracting line structure light stripe center of regular surface
CN113436207B (en) * 2021-06-28 2024-01-23 江苏特威机床制造有限公司 Method for rapidly and accurately extracting line structure light stripe center of regular surface

Similar Documents

Publication Publication Date Title
Gu et al. Recognition using regions
CN104182763B (en) A kind of floristics identifying system based on flower feature
CN106897724A (en) A kind of plant leaf identification method based on contour line shape facility
CN108596154B (en) Remote sensing image classification method based on high-dimensional feature selection and multilevel fusion
CN107085708B (en) High-resolution remote sensing image change detection method based on multi-scale segmentation and fusion
CN101980250B (en) Method for identifying target based on dimension reduction local feature descriptor and hidden conditional random field
CN104778457B (en) Video face identification method based on multi-instance learning
JP5567448B2 (en) Image area dividing apparatus, image area dividing method, and image area dividing program
CN101697197B (en) Method for recognizing human face based on typical correlation analysis spatial super-resolution
CN101004791A (en) Method for recognizing facial expression based on 2D partial least square method
Casanova et al. Texture analysis using fractal descriptors estimated by the mutual interference of color channels
CN103679192A (en) Image scene type discrimination method based on covariance features
Karkanis et al. Classification of endoscopic images based on texture spectrum
Mantecon et al. Depth-based face recognition using local quantized patterns adapted for range data
CN110516525A (en) SAR image target recognition method based on GAN and SVM
CN108960276B (en) Sample expansion and consistency discrimination method for improving spectral image supervision classification performance
Satpathy et al. Human detection using discriminative and robust local binary pattern
CN114782715B (en) Vein recognition method based on statistical information
Khorsheed et al. Analysis of local binary patterns for face recognition under varying facial expressions
CN111414958A (en) Multi-feature image classification method and system for visual word bag pyramid
CN108090460B (en) Weber multidirectional descriptor-based facial expression recognition feature extraction method
CN100416592C (en) Human face automatic identifying method based on data flow shape
CN103310456B (en) Multidate/multi-modal remote sensing image registration method based on Gaussian-Hermite square
CN106951873B (en) Remote sensing image target identification method
CN109753912B (en) Multispectral palm print matching method based on tensor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170627

WD01 Invention patent application deemed withdrawn after publication