CN104766326A - Shape matching locating method and device based on yin-yang discrete point sampling model - Google Patents

Shape matching locating method and device based on yin-yang discrete point sampling model Download PDF

Info

Publication number
CN104766326A
CN104766326A CN201510171833.9A CN201510171833A CN104766326A CN 104766326 A CN104766326 A CN 104766326A CN 201510171833 A CN201510171833 A CN 201510171833A CN 104766326 A CN104766326 A CN 104766326A
Authority
CN
China
Prior art keywords
discrete point
shape
sample graph
contour mould
shape contour
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
CN201510171833.9A
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.)
South Central Minzu University
Original Assignee
South Central University for Nationalities
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 South Central University for Nationalities filed Critical South Central University for Nationalities
Priority to CN201510171833.9A priority Critical patent/CN104766326A/en
Publication of CN104766326A publication Critical patent/CN104766326A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a shape matching locating method based on a yin-yang discrete point sampling model. The method comprises the steps that first, shape contour templates are extracted from yin discrete point sampling images or yang discrete point sampling images in sample images; second, the extracted shape contour templates are subjected to optimization, and the best shape contour template is obtained; and third, yin discrete point sampling images or yang discrete point sampling images of practical images are obtained and are matched with the corresponding best shape contour template, so that images are recognized. In the third step, matching is achieved through a matching ratio operator for computing density estimation of the yin discrete point sampling images or the yang discrete point sampling images of the practical images and the corresponding best shape contour template. The invention further discloses a corresponding shape matching locating device. According to the method and device, the shape contour templates are extracted from the yin discrete point sampling images or the yang discrete point sampling images in the sample images, matching of the detected images is achieved, a shape to be detected is recognized, and quick extracting and accurate distinguishing of line-face combination shapes under a complex background in current image recognition are achieved.

Description

A kind of form fit localization method based on negative and positive discrete point sampling model and device
Technical field
The present invention relates to images match identification field, particularly relate to the method and device of in a kind of digital picture, carrying out form fit location.
Background technology
Utilize order target area, boundary information realize identifying from complicated image and the form fit of localizing objects cognitive and distinguish the universal law of target owing to meeting most human eye, thus obtain image procossing, the large quantities of scholar of computer vision field study for a long time widely.Form fit model comprise scene graph in the middle of express, shape template and matching way three key elements.Detect in the middle of the application of target in hope fast by form fit, to the requirement mainly stability expressed in the middle of scene graph, namely the impact that should not be subject to illumination variation, speckle noise, trickle geometry deformation in shooting process is as far as possible expressed in this centre; Not only to the requirement of shape template mainly representative and separability, this template can represent this class target but also can will make a distinction with other class targets; To the rapidity that the requirement of matching way mainly calculates.
Form fit can be divided into the form fit based on edge and the form fit based on region two class from the middle expressive perspective of scene graph.Form fit based on edge often requires clear and definite point-to-point skirt response, and rim detection is a difficult categorised decision, to noise and illumination variation responsive.In order to strengthen the stability that outline map is expressed as centre, have method edge chips to be organized into groups, the curve separability after marshalling is stronger, has less potential coupling than isolated edge chips, this makes coupling relatively easily carry out, and can block and work under edge deletion condition.Other methods then by carry out form fit to avoid in the segmentation figure of over-segmentation a little with point skirt response, obtain to compact shape change and space change adaptive faculty.But these methods all have higher computation complexity usually, be difficult to the demand meeting real-time online detection.Coupling based on region does not need clear and definite skirt response, to the distortion of local shape, to block robustness stronger, but lack important shape details, complicated shape is difficult to stable extraction, expresses and exact matching, and its classification capacity is restricted in complex scene.
A kind of image analysis method based on negative and positive discrete point sampling model is disclosed in applicant patent CN201110349510A formerly, it is according to the type of target to be detected in image, size and degree of noise interference select sample operator, sample radius and neighborhood gray uniformization pass judgment on threshold value, and then utilize above-mentioned sample operator, sample radius and neighborhood gray uniformization pass judgment on threshold value, then calculate by carrying out sampling to image, obtain corresponding cloudy sample graph and positive sample graph, finally in described cloudy sample graph and positive sample graph, discrete point grouping method is utilized to detect corresponding target.The method considers the advantage of based target region and based target border two class methods simultaneously, the boundary information of target in target image is obtained by cloudy sample graph, the area information of target in target image is obtained by positive sample graph, yin, yang sample graph reflects the transient process of objective area in image to object edge jointly, sample radius can switch according to the change of target size simultaneously, computing velocity is significantly improved, also has stronger adaptability to the change in size of target.
But, in the method, underuse the priori of known form, the deficiency that range of application is limited to.Such as discrete point grouping method can only be tieed up according to N the discrete point that connectivity pair that peripheral direction contribution degree describes has certain connected relation and organize into groups, if the connectedness of discrete point is interrupted due to the interference of complex background, discrete point marshalling just cannot go on, usually organize into groups result because the interference of complex background can not extract the shape expected simultaneously, extract too many unwanted center line in other words, cause its line in images match under complex background, face combined shaped cannot rapid extraction and accurately distinguishing, make images match discrimination not high.
Summary of the invention
For above defect or the Improvement requirement of prior art, the invention provides a kind of form fit localization method based on negative and positive discrete point sampling model, it by extracting shape contour mould from the cloudy discrete point sample graph or positive discrete point sample graph of sample image, realize the coupling of detected image and identify shape to be detected, solve current image recognition detect in line under complex background, face combined shaped rapid extraction and accurately distinguish problem.
For achieving the above object, according to one aspect of the present invention, provide a kind of form fit localization method based on negative and positive discrete point sampling model, it realizes images match by the shape contour mould extracted in cloudy discrete point sample graph or positive discrete point sample graph, it is characterized in that, the method comprises:
The first step of shape contour mould is extracted from the cloudy discrete point sample graph sample image or positive discrete point sample graph;
Carry out preferably to the shape contour mould extracted, obtain the second step of optimum shape contour mould: and
Obtain the cloudy discrete point sample graph of real image or positive discrete point sample graph, it is mated with corresponding optimum shape contour mould, thus the third step of recognition image;
Wherein, in described third step, obtain with the matching rate operator of the density Estimation of corresponding optimum shape contour mould especially by the cloudy discrete point sample graph or positive discrete point sample graph that calculate described real image mating.
As improvement of the present invention, cloudy discrete point sample graph is utilized to carry out the matching rate operator of described density Estimation:
λ = N M = Σ k = 1 M S ( p k ) M
In formula, M is summation of counting in shape contour mould, and N is the summation of counting that on shape contour mould, each point has response relation in discrete point sample graph banded zone, p kbe current point on shape contour mould, arbitrary curve is by the response relation S (P of certain discrete point k)
S ( p k ) = 1 I ( p k ) = 1 or C 8 ( p k ) &GreaterEqual; 2 0 C 8 ( p k ) < 2
As improvement of the present invention, the matching rate operator utilizing positive discrete point sample graph to carry out described density Estimation is:
&gamma; = N M &times; r 2
In formula, M is summation of counting in region template, and N is region template discrete point summation in overlay area in discrete point sample graph, and r is the sample radius of negative and positive discrete point sampling model.
As improvement of the present invention, described matching rate operator can comprehensive positive discrete point sample graph matching rate operator and cloudy discrete point sample graph matching rate operator obtain.
As improvement of the present invention, the structure conspicuousness that the described shape contour mould to extracting carries out preferably by calculating shape profile template matches feature realizes, and wherein, the structure conspicuousness of described shape profile template matches feature is specifically calculated as follows:
If there is n class target, and the effect of feature t is by class ω imake a distinction with other n-1 classes, then define this feature t for class ω iarchitectural feature significance measure
S i t = 1 n - 1 &Sigma; j = 1 n S ij t , j &NotEqual; i
Wherein, S ij t = 1 - e - a ( ( m i - m j ) 2 &sigma; i 2 + &sigma; j 2 + c ) b , 0 < a < 1,0 < b < 1
In formula, m iand m jfor class ω iwith class ω jthe average of corresponding templates matching characteristic t, with it is its variance.Formula (3-5) shows that between class, difference is larger, and class interpolation is less, namely larger, feature t is more remarkable, more can by class ω iwith class ω jmake a distinction.In formula the effect of natural logarithm e be by be adjusted to the value between a 0-1, so that compare between the feature of different span.A is proportional control factor, and b is index adjustment factor, and both cooperations can make difference calculated value adjust to be convenient to distinguish degree, c is a small constant, is 0 for avoiding denominator.
As improvement of the present invention, there is convergent-divergent, rotation geometry is out of shape between shape to be extracted and described preferred shape contour mould, then need to carry out region conversion to shape contour mould, affine deformation Matrix Formula is:
&alpha; &beta; ( 1 - &alpha; ) &times; center . x - &beta; &times; cebter . y - &beta; &alpha; &beta; &times; center . x + ( 1 - &alpha; ) &times; center . y
Wherein α=scale × cos (angle), β=scale × sin (angle), the scale coefficient of the corresponding affine deformation of scale, the coefficient of rotary of the corresponding affine deformation of angle.Center.x and center.y represents horizontal ordinate and the ordinate of convergent-divergent or rotation center respectively.
As improvement of the present invention, under can using estimating target deformation condition, directly can determine deformation formula and then directly obtain corresponding contour mould, that is: first according to the priori of shape to be extracted, select from the center line extracted most possibly belong to shape to be extracted one or several center line as key central line, the size possible to shape contour mould, direction, position is estimated, then in cloudy discrete point sample graph corresponding key central line discrete point banded zone in coupling checking this shape contour mould estimated whether appropriate.
According to another aspect of the present invention, a kind of form fit locating device based on negative and positive discrete point sampling model is provided, it realizes images match by the shape contour mould extracted in cloudy discrete point sample graph or positive discrete point sample graph, and it is characterized in that, this device comprises:
First module, it for extracting shape contour mould from the cloudy discrete point sample graph in sample image or positive discrete point sample graph;
Second module, it, for carrying out preferably to the shape contour mould extracted, obtains optimum shape contour mould: and
3rd module, it, for obtaining the cloudy discrete point sample graph of real image or positive discrete point sample graph, mates with corresponding optimum shape contour mould by it, thus recognition image;
Wherein, in described 3rd module, obtain with the matching rate operator of the density Estimation of corresponding optimum shape contour mould especially by the cloudy discrete point sample graph or positive discrete point sample graph that calculate described real image mating.
As improvement of the present invention, cloudy discrete point sample graph is utilized to carry out the matching rate operator of described density Estimation:
&lambda; = N M = &Sigma; k = 1 M S ( p k ) M
In formula, M is summation of counting in shape contour mould, and N is the summation of counting that on shape contour mould, each point has response relation in discrete point sample graph banded zone, p kbe current point on shape contour mould, arbitrary curve is by the response relation S (P of certain discrete point k)
S ( p k ) = 1 I ( p k ) = 1 or C 8 ( p k ) &GreaterEqual; 2 0 C 8 ( p k ) < 2
As improvement of the present invention, the matching rate operator utilizing positive discrete point sample graph to carry out described density Estimation is:
&gamma; = N M &times; r 2
In formula, M is summation of counting in region template, and N is region template discrete point summation in overlay area in discrete point sample graph, and r is the sample radius of negative and positive discrete point sampling model, is multiplied by r 2in order to the pixel caused because of discrete sampling vacancy factor is taken into account.
As improvement of the present invention, the structure conspicuousness that the described shape contour mould to extracting carries out preferably by calculating shape profile template matches feature realizes, and wherein, the structure conspicuousness of described shape profile template matches feature is specifically calculated as follows:
If there is n class target, and the effect of feature t is by class ω imake a distinction with other n-1 classes, then define this feature t for class ω iarchitectural feature significance measure
S i t = 1 n - 1 &Sigma; j = 1 n S ij t , j &NotEqual; i
Wherein, in formula, m iand m jfor class ω iwith class ω jthe average of corresponding templates matching characteristic t, with it is its variance.Formula (3-5) shows that between class, difference is larger, and class interpolation is less, namely larger, feature t is more remarkable, more can by class ω iwith class ω jmake a distinction.In formula the effect of natural logarithm e be by be adjusted to the value between a 0-1, so that compare between the feature of different span.A is proportional control factor, and b is index adjustment factor, and both cooperations can make difference calculated value adjust to be convenient to distinguish degree, c is constant.
As improvement of the present invention, there is convergent-divergent, rotation geometry is out of shape between shape to be extracted and described preferred shape contour mould, then need to carry out region conversion to shape contour mould, affine deformation Matrix Formula is:
&alpha; &beta; ( 1 - &alpha; ) &times; center . x - &beta; &times; cebter . y - &beta; &alpha; &beta; &times; center . x + ( 1 - &alpha; ) &times; center . y
Wherein α=scale × cos (angle), β=scale × sin (angle), the scale coefficient of the corresponding affine deformation of scale, the coefficient of rotary of the corresponding affine deformation of angle, center.x and center.y represents horizontal ordinate and the ordinate of convergent-divergent or rotation center respectively.
As improvement of the present invention, under can using estimating target deformation condition, directly can determine deformation formula and then directly obtain corresponding contour mould, that is: first according to the priori of shape to be extracted, select from the center line extracted most possibly belong to shape to be extracted one or several center line as key central line, the size possible to shape contour mould, direction, position is estimated, then in cloudy discrete point sample graph corresponding key central line discrete point banded zone in coupling checking this shape contour mould estimated whether appropriate.
In the present invention, the introducing of contour mould can refuse rapidly unwanted center line, to noise with fuzzyly have very strong immunity; Discrete point sample graph is extremely suitable for carrying out density Estimation to contour mould, as long as there is the banded zone that a slice discrete point aggregates in sample graph, certain contour mould can be admitted inside it, just this contour mould is contained with very large probability in former figure, this contour mould itself does not need to have continuity, can be the independent assortment of some key central lines, thus greatly extend the scope of application of carrying out graphical analysis based on negative and positive discrete point sampling model.
In general, the above technical scheme conceived by the present invention compared with prior art, has following beneficial effect:
(1) according to the concrete condition of application, in negative and positive discrete point sample graph, corresponding shape contour mould can be obtained by the method for Freehandhand-drawing or discrete point marshalling voluntarily, simple and practical.
(2) calculated by the conspicuousness of contour mould, can set up and a set ofly select the practical step being more conducive to carrying out the shape profile form assembly that shape extracting and similar shape are distinguished, user can by repeatedly drawing or generating different shape contour moulds and calculate teaching display stand optimization by conspicuousness.
(3) calculated by the matching rate of the matching rate of density Estimation, the shape that can fast, robustly combine line, face under complex background is carried out extract real-time and accurately distinguishes
(4) estimated and affine deformation by target distortion, can fast processing when there is convergent-divergent between shape to be extracted and described preferred shape contour mould, situation that rotation geometry is out of shape.
Accompanying drawing explanation
Fig. 1 is the four kinds of contour moulds utilizing certain wheel arrangement type of manual drawing to adopt in the method according to the embodiment of the present invention;
Fig. 2 is with the contour mould for distinguishing five class wheel arrangements that structure conspicuousness is picked out in the method according to the embodiment of the present invention;
Fig. 3 utilizes the wheel arrangement five class contour mould in Fig. 2 to carry out matching rate λ ithe result calculated;
Fig. 4 be in the method according to the embodiment of the present invention under various noise based on contour mould estimate wheel alignment result.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
A kind of shape profile matching process based on negative and positive discrete point sample graph constructed by the present embodiment, comprise and extract shape contour mould from the cloudy discrete point sample graph or kation discrete point sample graph of sample image, the template extracted is carried out preferably and utilizes the shape contour mould preferably obtained to mate these processes.
Particularly, in cloudy discrete point sample graph, shape contour mould is mated, calculate the matching rate between them by density Estimation.The introducing of shape contour mould can refuse rapidly unwanted profile and elongated curve, to noise with fuzzyly have very strong immunity; And cloudy discrete point sample graph is extremely suitable for carrying out density Estimation to shape contour mould, as long as there is the banded zone that a slice discrete point aggregates in sample graph, certain shape contour mould can be admitted inside it, in former figure, just contain this shape contour mould with very large probability.
In the present embodiment, in cloudy discrete point sample graph to the matching rate operator that shape contour mould carries out density Estimation be
&lambda; = N M = &Sigma; k = 1 M S ( p k ) M - - - ( 1 )
In formula (1), M is summation of counting in shape contour mould, and N is the summation of counting that on shape contour mould, each point has response relation in discrete point sample graph banded zone, p kbe current point on shape contour mould, arbitrary curve is by the response relation S (P of certain discrete point k) define and see formula (2).
S ( p k ) = 1 I ( p k ) = 1 or C 8 ( p k ) &GreaterEqual; 2 0 C 8 ( p k ) < 2 - - - ( 2 )
In formula, I (p k) for record in cloudy discrete point sample graph with curve current point p kwhether correspondence position exists discrete point, if there is discrete point, then this point is black pixel, and value is 1, if there is no discrete point, then this point is white pixel, and value is 0.I (p kwith curve current point p in the cloudy discrete point sample graph of)=1 expression kcorrespondence position is black pixel, and value is C 8(p krepresent in cloudy discrete point sample graph with p kblack number of pixels around correspondence position on 8 UNICOM directions, C 8(p kwith p in the cloudy discrete point sample graph of)>=2 expression karound correspondence position, there is the black pixel of two or more in 8 UNICOM directions, and both of these case is all identified as curve by a discrete point in cloudy discrete point sample graph, otherwise does not then pass through.Avoiding problems clear and definite point-to-point corresponding, have stronger resistivity to the geometry deformation in certain limit and noise.
The Algorithms T-cbmplexity mated shape contour mould in cloudy discrete point sample graph, far below the time complexity of conventional gray scale template matches and edge matching algorithm.
In the present embodiment, the shape contour mould extracted is carried out preferably, if there is not large disparity between shape to be matched and shape contour mould, and require find out in several similar shape closest to shape contour mould that time situation, namely how to realize the accurate differentiation of similar shape.The difficulty that outline reduces form fit is carried out in cloudy discrete point sample graph, but the separability of shape contour mould is had higher requirement, need to measure the structure conspicuousness of multiple shape profile template matches feature, thus pick out one group of representative and that separability is strong shape contour mould and carry out coupling and classify.
Wherein, representative this template of finger by force can tolerate the disparity between similar target as far as possible, and separability refers to that by force this template can distinguish inhomogeneous target as far as possible.Feature significance measurement criterion can be divided into structure conspicuousness and probability conspicuousness two kinds, structure conspicuousness using in class, between class distance function as criterion, little as far as possible by structure inter-object distance, and the large as far as possible criterion function of between class distance selects shape template; Probability conspicuousness, then using minimum error probability as criterion, is picked out on the whole, is statistically judged minimum shape template by accident.The advantage of structure conspicuousness only needs a small amount of sample just can learn, and shortcoming is that the accuracy rate of classification is high not as probability conspicuousness.When a small amount of sample only can be obtained, structure conspicuousness can be adopted to learn.Probability conspicuousness advantage based on minimum error probability is that accuracy rate is higher, and shortcoming needs a large amount of learning samples.
In this programme, regard each shape contour mould as an observer, each coupling output matching characteristic t, then the structure conspicuousness set up based on matching characteristic t selects the method for shape contour mould, by drawing in the discrete point sample graph of learning sample, defining and the structure conspicuousness calculating shape template selects the shape template that more can represent this class target and more other class targets can be made a distinction again, this process can be divided into following three steps to carry out:
(1) single template matches feature is measured for distinguishing the structure conspicuousness of (such as two class targets)
If there are two class target ω iand ω j, and the effect of template characteristic t is by class ω iwith class ω jmake a distinction, defined feature t is for class ω iwith class ω jarchitectural feature significance measure
S ij t = 1 - e - a ( ( m i - m j ) 2 &sigma; i 2 + &sigma; j 2 + c ) b , 0 < a < 1,0 < b < 1 - - - ( 3 )
In formula (3), m iand m jfor class ω iwith class ω jthe average of corresponding templates matching characteristic t, with it is its variance.Formula (3-5) shows that between class, difference is larger, and class interpolation is less, namely larger, feature t is more remarkable, more can by class ω iwith class ω jmake a distinction.In formula the effect of natural logarithm e be by be adjusted to the value between a 0-1, so that compare between the feature of different span.A is proportional control factor, and b is index adjustment factor, and both cooperations can make difference calculated value adjust to be convenient to distinguish degree, c is a small constant, is 0 for avoiding denominator.In the present embodiment, can calculate by experiment and preferably work as a=0.3, during b=0.7 calculated value to distinguish degree comparatively large, therefore preferably get a=0.3 in the present embodiment, b=0.7, c=0.0000001.
(2) single template characteristic is measured for distinguishing the structure conspicuousness of (such as multi-class targets)
If there is n class target, and the effect of feature t is by class ω imake a distinction with other n-1 classes, then define this feature t for class ω iarchitectural feature significance measure
S i t = 1 n - 1 &Sigma; j = 1 n S ij t , j &NotEqual; i - - - ( 4 )
Formula (4) shows be worth larger, feature t is more remarkable, more can by class ω imake a distinction with other n-1 classes.
(3) optimal Template combination is selected
Suppose there is multiple template, its matching characteristic t 1, t 2..., t kall have class ω iability with other n-1 classes make a distinction, then calculate each feature t respectively ifor class ω iarchitectural feature significance measure get
S i = max ( S i t k ) - - - ( 5 )
Characteristic of correspondence is as class ω ibest features, is denoted as t i.If all adopt said method to select best features to each class target, a multiclass notable feature combination can be obtained:
T={t 1,t 2,…t n} (6)
Preferably, if there is the geometry deformations such as larger convergent-divergent, rotation between shape to be extracted and the shape contour mould of specifying, also need to carry out region conversion to shape contour mould.
Wherein affine deformation matrix is as shown in formula (7):
&alpha; &beta; ( 1 - &alpha; ) &times; center . x - &beta; &times; cebter . y - &beta; &alpha; &beta; &times; center . x + ( 1 - &alpha; ) &times; center . y - - - ( 7 )
Wherein α=scale × cos (angle), β=scale × sin (angle), the scale coefficient of the corresponding affine deformation of scale, the coefficient of rotary of the corresponding affine deformation of angle, center.x and center.y represents horizontal ordinate and the ordinate of convergent-divergent or rotation center respectively.
Such as, in an embodiment preferably corresponding scale coefficient scale value is 1.1, dimension deformation number of times is 10, corresponding angle coefficient of angularity is 5, one direction rotational deformation number of times is 3, altogether can obtain 10 × (2 × 3+1)=70 shape contour mould, and corresponding 70 region templates.
After obtaining above-mentioned template, calculate their matching rates in discrete point sample graph one by one.Preferably the cloudy matching rate of shape contour mould in cloudy sample graph not only will be calculated in the present embodiment, also can consider the positive matching rate of region template in positive sample graph changed into by shape contour mould, preferably comprehensive two matching rates provide final coupling positioning result.
Wherein, the computing formula of positive matching rate is shown in formula (8)
&gamma; = N M &times; r 2 - - - ( 8 )
In formula (8), M is summation of counting in region template, and N is region template discrete point summation in overlay area in discrete point sample graph, and r is the sample radius of negative and positive discrete point sampling model, is multiplied by r 2in order to the pixel caused because of discrete sampling vacancy factor is taken into account.
In theory, if only there is affine deformation between shape to be extracted and the shape contour mould of specifying, then always can find by the method for exhaustion profile and region template that mate shape to be extracted most, but in actual applications, unlimited many time can not be provided to attempt all possibilities, if the direction at this moment having clue to indicate affine deformation most possible, then can greatly reduce the number of times and time that calculate profile and region template.
Based on above-mentioned thinking, the shape extracting method that Shape-based interpolation contour mould is estimated can be set up.The center line that a upper joint extracts just can play this effect.First according to the priori of shape to be extracted, select from the center line extracted most possibly belong to shape to be extracted one or several center line as key central line, the possible size of shape contour mould, direction, position are estimated, then in cloudy discrete point sample graph corresponding key central line discrete point banded zone in this shape contour mould estimated of coupling checking whether appropriate.
Form fit based on contour mould can realize the function of part classification and incipient fault zone location in TFDS, and key is the quality how improving contour mould, enables current type parts and other types to be made a distinction better.
The concrete grammar that the present embodiment is optimized for wheel arrangement pattern of descriptive parts.As shown in Figure 1, for a certain specific wheel unit type, first can prepare the contour mould of several candidate more, as Fig. 1 (a)-(d), then structure significant characteristics is utilized to measure, with matching rate λ for feature t, calculate the architectural feature conspicuousness of contour mould for this unit type of these candidates with formula (4) select the highest contour mould as shape template, thus improves the accuracy of part classification and incipient fault zone location.
In the present embodiment, if in the middle of four of Fig. 1 contour moulds, contour mould 1 the highest, wheel arrangement Class1 and other wheel arrangement type classification can be come.Above-mentioned data based on the every class 200 from Test Field random choose, 1000 wheel arrangement Class1-5 pictures altogether.
The highest contour mould of structure significance measure value is selected to each wheel arrangement type method all applied above that reality uses, finally can obtain one group of remarkable configuration form assembly, as shown in Figure 2.Set up a shape template storehouse based on this group contour mould combination, the matching rate λ of formula (1) calculating to each contour mould i is used successively to each width test pattern i, select λ iwheel arrangement type corresponding to the highest contour mould is the wheel arrangement type of present image.
Fig. 3 figure provides and utilizes the wheel arrangement five class contour mould in Fig. 2 to carry out matching rate λ ithe result calculated, can find out that this 5 class Freehandhand-drawing template has good separability, directly can pass through more different λ isize classify.
In the present embodiment, the storage format of preferred each contour mould is: starting point absolute coordinates (4Byte)+starting point bearing of trend (1Byte)+starting point development length (2Byte)+contour mould point relative coordinate sequence (4Byte × (M-1), M are summations of counting in contour mould).If carefully select starting point during drawing image and record its bearing of trend and development length as necessary condition, just a large amount of extraneous areas can be got rid of rapidly during coupling, quickening matching speed.
In addition, in the present embodiment, with the center line extracted as a reference, first according to the priori of shape to be extracted, select from the center line extracted most possibly belong to shape to be extracted one or several center line as key central line, the possible size of contour mould, direction, position are estimated, then in cloudy discrete point sample graph corresponding key central line discrete point banded zone in this contour mould estimated of coupling checking whether appropriate.The test problems that this solves from different size, position wheel in 5 boxcar fault detect websites is adopted in the present embodiment.
First the wheel alignment method estimated based on contour mould finds the curve belonging to wheel as key central line from detected center line, the curve belonging to right wheel should meet one of following three conditions: the circular curve of (1) radius between 200-400 pixel or partial arc curve; (2) rail straight line intersection corresponding to lower right side, bottom, the non-rectilinear that connects, meet; (3) the bottom right district of discrete point sample graph may belong to the center line of right wheel border banded zone.
The algorithm curve that according to condition (1)-(3) this three conditions of sequential search are corresponding, curve such in the central line pick-up figure of nearly all wheel image all can have 1-2 bar.After obtaining belonging to the key central line on wheel border, the circle of multiple radiuses between 200-400 pixel that all curvilinear structures unique points of key central line can be formed, in discrete point sample graph, calculate the number of each round bottom right semi arch by discrete point, the final wheel alignment result exported can be by the circular arc place circle of maximum discrete point.Fig. 4 gives five width and is disturbed on image and uses said method to carry out the result of wheel alignment.
Those skilled in the art will readily understand; the foregoing is only preferred embodiment of the present invention; not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1., based on a form fit localization method for discrete point sampling model, it realizes images match by utilizing the shape contour mould extracted in discrete point sample graph, and it is characterized in that, the method comprises:
The first step of shape contour mould is extracted from the cloudy discrete point sample graph sample image;
Carry out preferably to the shape contour mould extracted, obtain the second step of optimum shape contour mould: and
Obtain the cloudy discrete point sample graph of real image and/or positive discrete point sample graph, it is mated with corresponding optimum shape contour mould, thus the third step of recognition image;
Wherein, in described third step, carry out mating obtaining with the matching rate operator of the density Estimation of corresponding optimum shape contour mould especially by the cloudy discrete point sample graph or positive discrete point sample graph that calculate described real image.
2. a kind of form fit localization method based on discrete point sampling model according to claim 1, wherein, utilizes cloudy discrete point sample graph to carry out the matching rate operator of described density Estimation:
&lambda; = N M = &Sigma; k = 1 M S ( p k ) M
In formula, M is summation of counting in shape contour mould, and N is the summation of counting that on shape contour mould, each point has response relation in discrete point sample graph banded zone, p kbe current point on shape contour mould, arbitrary curve by the response relation of this discrete point is S ( p k ) = 1 I ( p k ) = 1 or C 8 ( p k ) &GreaterEqual; 2 0 C 8 ( p k ) < 2 , Wherein, I (p kwith curve current point p in the cloudy discrete point sample graph of)=1 expression kcorrespondence position is black pixel, C 8(p k) represent in cloudy discrete point sample graph with p kblack number of pixels around correspondence position on 8 UNICOM directions.
3. a kind of form fit localization method based on discrete point sampling model according to claim 1, wherein, the matching rate operator utilizing positive discrete point sample graph to carry out described density Estimation is:
&gamma; = N M &times; r 2
In formula, M is summation of counting in region template, and N is region template discrete point summation in overlay area in discrete point sample graph, and r is the sample radius of negative and positive discrete point sampling model.
4. a kind of form fit localization method based on discrete point sampling model according to any one of claim 1-3, wherein, the structure conspicuousness that the described shape contour mould to extracting carries out preferably by calculating shape profile template matches feature realizes, wherein, the structure conspicuousness of described shape profile template matches feature is specifically calculated as follows:
If there is n class shape profile casting formwork target, and the effect of feature t is by arbitrary class ω imake a distinction with other n-1 classes, then define this feature t for class ω iarchitectural feature significance measure for:
S i t = 1 n - 1 &Sigma; j = 1 n S ij t , j &NotEqual; i
Wherein, and m jfor class ω iwith class ω jthe average of corresponding templates matching characteristic t, with be its variance, a is proportional control factor, and b is index adjustment factor, and c is constant.
5. a kind of form fit localization method based on discrete point sampling model according to any one of claim 1-4, wherein, between shape to be extracted and described preferred shape contour mould, there is convergent-divergent, rotation geometry is out of shape, then need to carry out region conversion to shape contour mould, affine deformation Matrix Formula is:
&alpha; &beta; ( 1 - &alpha; ) &times; center . x - &beta; &times; center . y - &beta; &alpha; &beta; &times; center . x + ( 1 - &alpha; ) &times; center . y
Wherein α=scale × cos (angle), β=scale × sin (angle), the scale coefficient of the corresponding affine deformation of scale, the coefficient of rotary of the corresponding affine deformation of angle, center.x and center.y represents horizontal ordinate and the ordinate of convergent-divergent or rotation center respectively.
6. a kind of form fit localization method based on discrete point sampling model according to any one of claim 1-5, wherein, under can using estimating target deformation condition, directly can determine deformation formula and then directly obtain corresponding contour mould, that is: first according to the priori of shape to be extracted, select from the center line extracted most possibly belong to shape to be extracted one or several center line as key central line, the size possible to shape contour mould, direction, position is estimated, then in cloudy discrete point sample graph corresponding key central line discrete point banded zone in coupling checking this shape contour mould estimated whether appropriate.
7., based on a form fit locating device for discrete point sampling model, it realizes images match by the shape contour mould extracted in discrete point sample graph, it is characterized in that, this device comprises:
First module, it for extracting shape contour mould from the cloudy discrete point sample graph in sample image;
Second module, it, for carrying out preferably to the shape contour mould extracted, obtains optimum shape contour mould: and
3rd module, it, for obtaining the cloudy discrete point sample graph of real image or positive discrete point sample graph, mates with corresponding optimum shape contour mould by it, thus recognition image;
Wherein, in described 3rd module, obtain with the matching rate operator of the density Estimation of corresponding optimum shape contour mould especially by the cloudy discrete point sample graph and/or positive discrete point sample graph that calculate described real image mating.
8. a kind of form fit locating device based on negative and positive discrete point sampling model according to claim 7, wherein, utilizes cloudy discrete point sample graph to carry out the matching rate operator of described density Estimation:
&lambda; = N M = &Sigma; k = 1 M S ( p k ) M
In formula, M is summation of counting in shape contour mould, and N is the summation of counting that on shape contour mould, each point has response relation in discrete point sample graph banded zone, p kbe current point on shape contour mould, arbitrary curve by the response relation of certain discrete point is S ( p k ) = 1 I ( p k ) = 1 or C 8 ( p k ) &GreaterEqual; 2 0 C 8 ( p k ) < 2 , Wherein, I (p kwith curve current point p in the cloudy discrete point sample graph of)=1 expression kcorrespondence position is black pixel, C 8(p k) represent in cloudy discrete point sample graph with p kblack number of pixels around correspondence position on 8 UNICOM directions.
9. a kind of form fit locating device based on negative and positive discrete point sampling model according to claim 7 or 8, wherein, the matching rate operator utilizing positive discrete point sample graph to carry out described density Estimation is:
&gamma; = N M &times; r 2
In formula, M is summation of counting in region template, and N is region template discrete point summation in overlay area in discrete point sample graph, and r is the sample radius of negative and positive discrete point sampling model.
10. a kind of form fit locating device based on negative and positive discrete point sampling model according to any one of claim 7-9, wherein, the structure conspicuousness that the described shape contour mould to extracting carries out preferably by calculating shape profile template matches feature realizes, wherein, the structure conspicuousness of described shape profile template matches feature is specifically calculated as follows:
If there is n class shape profile casting formwork target, and the effect of feature t is by arbitrary class ω imake a distinction with other n-1 classes, then define this feature t for class ω iarchitectural feature significance measure for:
S i t = 1 n - 1 &Sigma; j = 1 n S ij t , j &NotEqual; i
Wherein, and m jfor class ω iwith class ω jthe average of corresponding templates matching characteristic t, with be its variance, a is proportional control factor, and b is index adjustment factor, and c is constant.
CN201510171833.9A 2015-04-13 2015-04-13 Shape matching locating method and device based on yin-yang discrete point sampling model Pending CN104766326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510171833.9A CN104766326A (en) 2015-04-13 2015-04-13 Shape matching locating method and device based on yin-yang discrete point sampling model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510171833.9A CN104766326A (en) 2015-04-13 2015-04-13 Shape matching locating method and device based on yin-yang discrete point sampling model

Publications (1)

Publication Number Publication Date
CN104766326A true CN104766326A (en) 2015-07-08

Family

ID=53648135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510171833.9A Pending CN104766326A (en) 2015-04-13 2015-04-13 Shape matching locating method and device based on yin-yang discrete point sampling model

Country Status (1)

Country Link
CN (1) CN104766326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634154A (en) * 2019-09-20 2019-12-31 湖南科技大学 Template fast matching method for target tracking with large-range speed variation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964112A (en) * 2010-10-29 2011-02-02 上海交通大学 Adaptive prior shape-based image segmentation method
CN102436659A (en) * 2011-11-07 2012-05-02 华中科技大学 Image analysis method based on yin-yang discrete point sampling model
CN103034850A (en) * 2012-12-21 2013-04-10 湖北工业大学 Trouble of moving freight car detection system (TFDS) block key loss fault automatic identification method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964112A (en) * 2010-10-29 2011-02-02 上海交通大学 Adaptive prior shape-based image segmentation method
CN102436659A (en) * 2011-11-07 2012-05-02 华中科技大学 Image analysis method based on yin-yang discrete point sampling model
CN103034850A (en) * 2012-12-21 2013-04-10 湖北工业大学 Trouble of moving freight car detection system (TFDS) block key loss fault automatic identification method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
朱宗晓 等: "Fast and Robust 2D-Shape Extraction Using Discrete-Point Sampling and Centerline Grouping in Complex Iamges", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 *
朱宗晓 等: "Fast Curvilinear Structure Extraction and Delineation from Line Scan Images Using Multi-scale Yin-yang Discrete-point Computing", 《PROCEEDINGS OF 2014 IEEE 17TH INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS》 *
朱宗晓 等: "Shape-Matching Model Optimization Using Discrete-point Samping and Feature Salience", 《JOURNAL OF COMPUTERS》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634154A (en) * 2019-09-20 2019-12-31 湖南科技大学 Template fast matching method for target tracking with large-range speed variation
CN110634154B (en) * 2019-09-20 2023-04-18 湖南科技大学 Template matching method for target tracking with large-range speed variation

Similar Documents

Publication Publication Date Title
CN109118479B (en) Capsule network-based insulator defect identification and positioning device and method
CN108107444B (en) Transformer substation foreign matter identification method based on laser data
CN107424142B (en) Weld joint identification method based on image significance detection
CN102236794B (en) Recognition and pose determination of 3D objects in 3D scenes
CN108597009B (en) Method for detecting three-dimensional target based on direction angle information
CN104850850A (en) Binocular stereoscopic vision image feature extraction method combining shape and color
CN103729631B (en) Vision-based connector surface feature automatically-identifying method
CN110866430A (en) License plate recognition method and device
CN109034065B (en) Indoor scene object extraction method based on point cloud
CN110751097B (en) Semi-supervised three-dimensional point cloud gesture key point detection method
CN101630407B (en) Method for positioning forged region based on two view geometry and image division
CN104121902A (en) Implementation method of indoor robot visual odometer based on Xtion camera
CN108509950B (en) Railway contact net support number plate detection and identification method based on probability feature weighted fusion
CN108073940B (en) Method for detecting 3D target example object in unstructured environment
CN108550165A (en) A kind of image matching method based on local invariant feature
Zelener et al. Cnn-based object segmentation in urban lidar with missing points
CN104751475A (en) Feature point optimization matching method for static image object recognition
Bogoslavskyi et al. Analyzing the quality of matched 3D point clouds of objects
CN108182705A (en) A kind of three-dimensional coordinate localization method based on machine vision
CN111009005A (en) Scene classification point cloud rough registration method combining geometric information and photometric information
CN110567383A (en) pantograph abrasion early warning system and detection method based on structural forest and sub-pixels
CN110516527B (en) Visual SLAM loop detection improvement method based on instance segmentation
CN110348307B (en) Path edge identification method and system for crane metal structure climbing robot
CN114092478B (en) Anomaly detection method
CN113538585B (en) High-precision multi-target intelligent identification, positioning and tracking method and system based on unmanned aerial vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708

RJ01 Rejection of invention patent application after publication