The method of unique point in a kind of improved extraction image
Technical field
The invention belongs to the method for unique point in a kind of improved extraction image.Specifically, be a kind of local feature in the computer vision field extract in the method for detected characteristics point, specially refer to and utilize improved filter shape on metric space, to calculate Hessian matrix determinant and find out the process of extreme point with definite character pair point.
Background technology
Local feature has extensively applied to the many aspects of computer vision field, aspects such as for example image registration, Target Recognition, objective retrieval.In the current research, local feature has unchangeability for geometric transformation, illumination conversion, for noise, block and background interference all has good robustness, and has very high discrimination between feature.These all become an important topic of its computer vision field research in the last few years.
The leaching process of the local feature of current main-stream mainly comprised for two steps: feature point detection process and descriptor computation process.In the feature point detection process, typically use a series of wave filter and be used for input picture, and in filtered result, choose the some position (for example extreme point) that possesses some characteristic, as detected unique point; In descriptor computation process, choosing with the unique point is a certain specific region (this zone is usually relevant with information such as yardstick) at center, through determining principal direction, asking a series of processes such as gradient, the distribution of Gauss's weights, obtain the descriptor vector of this unique point correspondence.
Summary of the invention
The present invention proposes the method for unique point in a kind of improved extraction image.It is at present based on a kind of improvement of detection of Hessian matrix determinant.Than previous feature point detecting method, the feature point detecting method among the present invention particularly has higher robustness at institute's detected characteristics point aspect rotation change and view transformation.
The technical problem to be solved in the present invention: according to existing feature point detecting method based on the Hessian determinant, the filter shape of structure sub-circular, propose a kind of improved under rotation and visual angle change feature point detection of robust more.
The method of unique point in a kind of improved extraction image that the present invention proposes, its step comprises:
(1) integral image computation process.For a width of cloth input picture I, calculate its integral image I
∑Certain position x=(x, y)
T, T represents (x, y) this 1 * 2 transpose of a matrix, integral image I
∑(x) corresponding value herein, be meant by the promptly upper left corner of image origin and position x=(x, y)
TThe summation of all pixel values in the determined rectangular area, i.e. integral image I
∑(x) computation process is expressed as
The pixel value summation I of certain rectangular area ABCD of input picture I correspondence
∑(reg
ABCD) calculation expression be
I
∑(reg
ABCD)=I
∑(A)-I
∑(B)+I
∑(C)-I
∑(D)
I wherein
∑(A), I
∑(B), I
∑(C), I
∑(D) represent corresponding to an A B, C, the integral image I at D place respectively
∑(x) value.
(2) on metric space, use the wave filter with similar shape of improved different size corresponding to different scale to calculate approximate Hessian determinant and be used for feature point detection.
For input picture I, calculate corresponding Hessian determinant of a matrix value according to different filter size.The Hessian matrix representation is
L
Xx(x, σ) the expression Gaussian function is about the second order local derviation of x and the image I value in the convolution at x place, and wherein σ is the variance of Gaussian function; L
Xy(x, σ) and L
Yy(x, σ) meaning of Denging in like manner can get.And approximate Hessian determinant det (H
Approx) be expressed as
det(H
approx)=D
xxD
yy-(wD
xy)
2
D wherein
Xx, D
Xy, D
YyRepresent respectively by about x second order local derviation, about x and y second order local derviation with carry out correspondence about the wave filter of y second order local derviation and calculate L
Xx, L
Xy, L
YyApproximate value.Weight w in the formula=0.9.
(a) D
YyComputing method be, wave filter is divided into the length of side that is equal to size and is 9 square area of (2k-1), according to from left to right, order from top to bottom is called upper left district reg
Lt_sq, Zhong Shang district reg
Ct_sq, upper right district reg
Rt_sq, Zuo Zhong district reg
Lc_sq, center reg
Cc_sq, You Zhong district reg
Rc_sq, lower-left district reg
Lb_sq, middle inferior segment reg
Cb_sq, bottom right district reg
Rb_sqHaving only four districts of a public vertex with the center is upper left district, upper right district, lower-left district, bottom right district.In these four zones, get respectively that with the center length of side on a public summit to be arranged be the square area of k, be called reg
Lt_sq_sub, reg
Rt_sq_sub, reg
Lb_sq_subWith reg
Rb_sq_sub
When k is odd number, at Zuo Zhong district reg
Lc_sqHe Youzhong district reg
Lc_sqThe square area reg that to get a length of side respectively be k
Lc_sq_subAnd reg
Rc_sq_sub, these two square area are right after center reg respectively
Cc_sqThe left side, their Center-to-Center district reg
Cc_sqBe centered close on the same horizontal line; At You Zhong district reg
Lc_sqIn can get a symmetrical square area reg equally
Lc_sq_subWhen k is even number, at Zuo Zhong district reg
Lc_sqThe square area reg that to get two length of sides be k
Lc_sq_sub_1And reg
Lc_sq_sub_2, they all are next to center reg
Cc_sqThe left side, at You Zhong district reg
Rc_sqIn get two symmetrical square area reg
Rc_sq_sub_1And reg
Rc_sq_sub_2, they all are next to center reg
Cc_sqThe right side, reg
Lc_sq_sub_1And reg
Rc_sq_sub_1The upper end all be positioned at from center reg
Cc_sqThe upper end begin to count
Individual position, reg
Lc_sq_sub_2And reg
Rc_sq_sub_2The vertical position of upper end all be positioned at begin to count from the upper end of center
Individual position;
The calculating formula of Dyy is
D
XxComputing method be
(b) D
XyComputing method be, be the center of circle with the center of wave filter, be diameter with 2k+1, do a border circular areas; Remove the horizontal symmetry axis and the vertical axis of symmetry part of wave filter, this border circular areas is divided into the sector region of four pi/2 sizes; Upper left, upper right, lower-left, lower right area are called reg
Lt_fan, reg
Rt_fan, reg
Lb_fan, reg
Rb_fanNote and upper left sector region reg
Lt_fanThe length of side be that the external square area of k is reg
Lt_fan_sq, promptly it has a summit to overlap with the center of circle of this sector region, has two limits to overlap with outermost two radiuses of sector region; External square area reg
Lt_fan_sqPoint to sector region reg
Lt_fanThe diagonal line in the center of circle and sector region reg
Lt_fanThe intersection point of arc, be positioned at the end points in the sector region outside with this diagonal line, the square area of formation is called reg
Lt_fan_sq_1With regional reg
Lt_fan_sqIn connect, with reg
Lt_fan_sq_1External and have a summit to be positioned at sector region reg
Lt_fanBe symmetrical in reg on the arc
Lt_fan_sqCornerwise two square area be called reg
Lt_fan_sq_2_l, reg
Lt_fan_sq_2_r With regional reg
Lt_fan_sqIn connect, with reg
Lt_fan_sq_2_lExternal and position, a summit and sector region reg arranged
Lt_fanSquare area on the arc is called reg
Lt_fan_sq_3_lIn like manner can get reg
Lt_fan_sq_3_r, reg
Lt_fan_sq_4_l, reg
Lt_fan_sq_4_rEtc. a series of square area; Reg then
Lt_fanThe calculation expression of approximate region summation be
I
∑(reg
lt_fan_approx)≈I
∑(reg
lt_fan_sq)-[I
∑(reg
lt_fan_sq_1)+
I
∑(reg
lt_fan_sq_2_l)+I
∑(reg
lt_fan_sq_2_r)+I
∑(reg
lt_fan_sq_3_l)+I
∑(reg
lt_fan_sq_3_r)+...]
In like manner obtain the expression formula of other fan-shaped approximate regions; Final D
XyCalculation expression be
D
xy=I
∑(reg
lt_fan_approx)-I
∑(reg
rt_fan_approx)+I
∑(reg
rb_fan_approx)-I
∑(reg
lb_fan_approx)
According to different filter size, calculate the value of the Hessian matrix determinant on the corresponding metric space.Metric space can be divided into a series of layer, and each layer comprises a series of levels again.The k value that each level is corresponding different.The k value of the level correspondence in the ground floor is respectively and is not less than 2 tolerances is 1 integer ordered series of numbers.The k value of the level correspondence in the second layer is respectively: be not less than 3 tolerances and be 2 integer ordered series of numbers.The k value of the level correspondence in the 3rd layer is respectively: be not less than 5 tolerances and be 4 integer ordered series of numbers.The k value of the level correspondence in the 4th layer is respectively: be not less than 9 tolerances and be 8 integer ordered series of numbers.The k value of the level correspondence in the n layer is respectively: be not less than 2
N-l+ 1 tolerance is 2
N-lThe integer ordered series of numbers.For each position in the metric space, the Hessian matrix determinant according to the wave filter of different k value correspondingly-sized calculates is used for follow-up extreme point testing process.
(3) dot information of the extreme value correspondence of the Hessian determinant in the metric space is as final detected unique point.For a series of Hessian determinant that calculates on the metric space, in each layer, for some positions, check that whether it is the extreme point in the zone of 3 * 3 * 3 in the adjacent level up and down, if extreme point that should the zone, so just it is chosen for detected unique point in the corresponding metric space, the characteristic of correspondence dot information comprises the positional information at this extreme point place and extreme point corresponding level number and level number in metric space.
Description of drawings
Fig. 1 is the process flow diagram of feature point detecting method.
Fig. 2 is that certain regional gray-scale value summation is calculated in the integral image.
Fig. 3 a, b are for calculating D
YySynoptic diagram.
Fig. 4 a, b are D
YyInstance graph.
Fig. 5 is for calculating D
XySynoptic diagram.
Fig. 6 a, b, c, d are for calculating D
XyInstance graph.
Specific embodiments
As shown in Figure 1, the method key step of the unique point in the improved extraction image can be described as: integral image calculates, use improved filter shape to calculate the value of corresponding Hessian matrix determinant on different metric spaces, the extreme point in the metric space detects to obtain final characteristic point position and yardstick information.
The value of certain pixel location correspondence in the integral image of one width of cloth input picture, i.e. all gray-scale value sums from the image origin rectangle that to be the upper left corner constituted to this point.For certain position x=in the input picture (x, y)
T, the transposition of T representing matrix, its integral image values I
∑(x) equation expression is
Gray area among Fig. 2 and can carry out computing by the integral image values on four angles, corresponding rectangular area and obtain.The pixel value summation I of rectangular area ABCD
∑(reg
ABCD) calculation expression be
I
∑(reg
ABCD)=I
∑(A)-I
∑(B)+I
∑(C)-I
∑(D)
I wherein
∑(A), I
∑(B), I
∑(C), I
∑(D) represent corresponding to an A B, C, the integral image values at D place respectively.
The expression formula of Hessian matrix is
L
Xx(x, σ) the expression Gaussian function is about the second order local derviation of x
With the value of image I in the convolution at x place, wherein σ is the variance of Gaussian function.L
Xy(x, σ) and L
Yy(x, σ) meaning of Denging in like manner can get.The determinant of Hessian matrix correspondence has been described the amplitude with the gradient of rate of gray level on this aspect on the curved surface of the gray-scale value formation of image.
Because the second-order partial differential coefficient of Gaussian function is a series of floating-point fractional value under the situation of discrete picture, complexity computing time of the convolution of itself and original image is higher.In this patent, adopt D
Xx, D
Xy, D
YyRepresent L respectively
Xx, L
Xy, L
YyApproximate value.Then Hessian determinant of a matrix calculation expression is
det(H
approx)=D
xxD
yy-(wD
xy)
2
Weights are w=0.9 in the formula, are used for the calculating of balance Hessian determinant.
D
YyCalculating as shown in Figure 3.The square of outermost is the peripheral profile of wave filter that is used to calculate Hessian matrix determinant among the present invention.Its length of side is 3 odd-multiple, is expressed as 2k-1.The value of k illustrates in the back.The left figure of Fig. 3 and right figure are the D when k is respectively odd and even number
YyCalculate synoptic diagram.In the filter shape of left figure, comprise up and down two white portions, middle black region and remaining gray area part.Wherein the top white portion is made up of three squares.The big foursquare length of side is 2k-1, is positioned at the center of the level of whole filter.Two little foursquare length of sides of both sides are k, and lower edge and foursquare lower edge broad in the middle are positioned on the same horizontal line.Below white portion and top white portion are the shape of symmetry about the central horizontal line.Middle black region is different according to its shape of parity of k.When k was odd number, middle its length of side of big square was 2k-1, and the little square length of side of both sides is k, and three foursquare centers all are positioned on the horizontal symmetry axis.When k was even number, the centre was still the big square that the length of side is 2k-1, and the shape of both sides is respectively two squares that a unit difference is arranged on the upright position that overlap on together.This is because when k is even number, is the square of k with the length of side, and a whole pixel value can not be got in its center.Thereby the upper end position at two foursquare centers of the same side lay respectively at from the centre foursquare top position downwards number the

With
Individual position.Thereby be under the situation of even number at k, two pairs of squares of both sides are nonoverlapping in the zone that one-row pixels is all arranged up and down.In the right side area of correspondence, can get the zone of k correspondence under different odd even situations equally.
The weights of the part of black are-2 among the figure, and the weights of white are+1, and grayish weights are 0, and the weights of Dark grey part are-1.
D
YyComputing method promptly multiply each other each several part among the figure and weights exactly, and the result of the addition of all products is exactly D
YyValue.Promptly as described in the summary of the invention.Under the situation that is k=3 and k=4 shown in Fig. 4, calculate corresponding D
YyThe shape synoptic diagram.D
XxComputing method similar, just calculate D
YyThe direction of used shape has been reversed an angle of 90 degrees.
D
XyComputing method as shown in Figure 5.This is that a radius is r, angle be pi/2 a sector region with and be the external square area of the length of side with r.Diagonal line AC and arc BMD meet at M.MH
1With MF
1Perpendicular with AB and AD respectively.AF then
1MH
1It is a square.H
1T
1Be parallel to AC again, and T
1G
1With T
1H
2Again respectively with AD and MH
1Perpendicular.H
1G
1T
1H
2It promptly is a square.And the like, H
1G
1T
1H
2, H
2G
2T
2H
3, H
3G
3T
3H
4... and with its regional F about the AC symmetry
1E
1U
1F
2, F
2E
2U
2F
3, F
3E
3U
3F
4... Deng all is square, and one of its summit all is positioned on the arc BMD.
Under the situation of known r,,, can obtain H by separating the analytic equation group with the initial point of a C as plane coordinate system
i(x
i, coordinate (x r)
i<0) and the length of side s of all square area
iThe result is shown in following formula:
Can solve x
iSeries of results be x
1=-0.707r, x
2=-0.545r, x
3=-0.442r, x4=-0.371r ...s
iSeries of results be s
1=0.293r, s
2=0.163r, s
3=0.103r, s
4=0.071r .....x
iValue all be rounded up to integer.Thereby among the figure a series of square area and can obtain by above-mentioned coordinate relation.Thereby the gray-scale value sum of sector region BMDC can obtain by following formula is approximate
In addition, the zone of some grey is arranged in Fig. 5, these zones can be omitted with respect to other bigger square area for the influence of testing process and be disregarded.Calculate square area that fan-shaped approximate gray-scale value sum need deduct to H
3G
3T
3H
4Size can satisfy the requirement of robustness.Calculate littler square again, its complexity increases and the detection effect is not greatly improved.
For other three sector regions, can be with reference to the method for Fig. 5.Fig. 6 has showed at k=2, k=3, k=4, the wave filter situation under the situation of k=7.The part of black is given weights-1 among the figure, and the weights of white portion are+1, and the part weights of grey are 0.Each several part is corresponding D with the product of separately weights and the result of addition
XyValue.
The calculating of Hessian determinant is carried out on metric space.Metric space is divided into a series of layer, and each layer is divided into a series of level again.The k value of the level correspondence in the ground floor is respectively and is not less than 2 tolerances is 1 integer ordered series of numbers.The k value of the level correspondence in the second layer is respectively: be not less than 3 tolerances and be 2 integer ordered series of numbers.The k value of the level correspondence in the 3rd layer is respectively: be not less than 5 tolerances and be 4 integer ordered series of numbers.The k value of the level correspondence in the 4th layer is respectively: be not less than 9 tolerances and be 8 integer ordered series of numbers.The k value of the level correspondence in the n layer is respectively: be not less than 2
N-1+ 1 tolerance is 2
N-1The integer ordered series of numbers.In the real process, satisfy institute's detected characteristics point and be for the preferred version of the robustness of affined transformation and illumination variation, often get metric space preceding 4 layers, and each layer is divided into 4 levels.The k value sequence that each layer correspondence is different.The k value sequence of the 1st layer of correspondence is: 2,3,4,5.The k value sequence of the 2nd layer of correspondence is: 3,5,7,9.The k value sequence of the 3rd layer of correspondence is: 5,9,13,17.The k value sequence of the 4th layer of correspondence is: 9,17,25,33.
In metric space, detect extreme point, as detected unique point about the Hessian determinant.Its testing process is as follows, for certain position that is in the metric space, the value of its Hessian determinant, with in neighbouring level and this layer in close position totally 26 values compare, if this value is local extreme value, think that then this position and corresponding layer and hierarchical information have constituted the information of passing through the detected unique point of this method.