Multi-source image correspondence method and system based on heterogeneous model fitting

Information

  • Patent Grant
  • 12131517
  • Patent Number
    12,131,517
  • Date Filed
    Friday, May 24, 2024
    7 months ago
  • Date Issued
    Tuesday, October 29, 2024
    a month ago
  • CPC
    • G06V10/751
    • G06T7/75
    • G06V10/449
    • G06V10/50
    • G06V10/753
  • Field of Search
    • CPC
    • G06V10/751
    • G06V10/753
    • G06V10/449
    • G06V10/50
    • G06T7/75
  • International Classifications
    • G06V10/75
    • G06T7/73
    • G06V10/44
    • G06V10/50
    • Term Extension
      0
Abstract
A multi-source image correspondence method and system based on heterogeneous model fitting is provided, the method includes the following steps: constructing a multi-orientation phase consistency model, fusing phase consistency, image amplitude, and orientation detection feature points, constructing logarithmic polar coordinate descriptors with variable-size bins using sub-region grids and orientation histograms, effectively estimating model parameters through heterogeneous model fitting, accumulating matching pairs from different heterogeneous models that meet a preset joint position offset transformation error, outputting a final matching pair, and completing multi-source image correspondence. The present disclosure alleviate the influence of nonlinear radiation distortion by constructing the multi-orientation phase consistency model, constructing logarithmic polar coordinate descriptors with variable-size bins by sub-region grids and orientation histograms, removing an abnormal matching relationship in multi-source images with the heterogeneous model fitting method, thereby improving the accuracy and robustness of feature detection and improving multi-source image correspondence performance.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 202311050564.1, filed on Aug. 18, 2023, which is hereby incorporated by reference in its entirety.


TECHNICAL FIELD

The present disclosure relates to the field of image processing technologies, and in particular, to a multi-source image correspondence method and system based on heterogeneous model fitting.


BACKGROUND

Multi-source image correspondence (i.e., image-matching) is a process of establishing a correspondence between two or more images with overlapping regions captured by different time phases, viewing angles, or different modal sensors (Multi-source image correspondence is often influenced by sensor type, rotation, noise, blurring, or temporal changes, which results in a large number of outliers and incorrect correspondences, which poses great challenges to multi-source image correspondence.


For the problem of multi-source image correspondence, Scale Invariant Feature Transform (SIFT) is a classic feature extraction method that is robust to scale, rotation, and linear intensity variations, but highly sensitive to linear intensity variations. Some improved SIFT variants (such as Uniform Robust SIFT and Scale Constrained SURF) solve this problem by improving local features. However, due to significant differences in intensity and texture in multi-source images, features extracted from multi-source images usually have low local repeatability. Therefore, these methods are only suitable for specific types of images, and their application scope is limited.


SUMMARY

In order to overcome the shortcomings and deficiencies of existing technologies, the present disclosure provides a multi-source image correspondence method based on heterogeneous model fitting. By constructing a multi-orientation phase consistency model, the influence of nonlinear radiation distortion is alleviated. A logarithmic polar coordinate descriptor with variable-size bins is constructed using sub-region grids and orientation histograms, an abnormal matching relationship in multi-source images is removed with the heterogeneous model fitting method and a final matching relationship is outputted, thereby improving the accuracy and robustness of feature detection and improving multi-source image correspondence performance.


In order to achieve the above objectives, the present disclosure adopts the following technical solutions.


The present disclosure provides a multi-source image correspondence method based on heterogeneous model fitting, including the following steps:

    • obtaining a two-dimensional image, constructing a two-dimensional log-Gabor filter for the two-dimensional image;
    • converting the two-dimensional log-Gabor filter from a frequency domain to a spatial domain based on Fourier inverse transform;
    • calculating an amplitude component and a phase component with respect to the scale and orientation;
    • constructing a phase consistency model based on the amplitude component and phase component, calculating phase consistency weighted moments in multiple orientations, and constructing a multi-orientation phase consistency model based on phase consistency model and phase consistency weighted moments in multiple orientations;
    • extracting image feature information from the multi-orientation phase consistency model by using Shi-Tomasi operator, filtering out a feature point with a response value below a set threshold,
    • constructing a variable-size bin strategy based on image feature information, the variable-size bin strategy divides a circular neighborhood of feature distribution into a plurality of sub-regions with different numbers according to different angular quantization rules, and different circular neighborhoods use gradient orientation histograms with different dimensions as a local descriptor;
    • calculating the orientational histogram of each sub-region as a descriptor, defining a quantified orientation histogram for each feature point as a descriptor, and normalizing a descriptor vector;
    • taking the two-dimensional image as a reference image, obtaining a to-be-matched target image, constructing an optimal geometric transformation model, and minimizing feature information between the reference image and the target image;
    • obtaining coordinates of two feature points from the reference image and the target image respectively, and constructing an initial matching pair;
    • generating multiple model hypotheses for every two images based on the heterogeneous model, the model hypotheses are generated by randomly sampling multiple minimum subsets from feature points in the model hypotheses;
    • calculating a transformation error of any two feature points in the reference image and target image with respect to the model hypotheses with Sampson distance, forming an ascending permutation, selecting the least k-th-order statistic of a square transformation error as a minimum cost, k represents an acceptable size of a structure;
    • extracting more matching pairs by combining horizontal displacement, vertical displacement, and cosine similarity of descriptor vector as a constraint criterion, calculating the offset of matching pairs in horizontal and vertical orientations as a position transformation error constraint feature descriptor, and constructing a joint position offset transformation error;
    • accumulating matching pairs from different heterogeneous models that meet a preset joint position offset transformation error; retaining only one matching pair when two matching pairs have the same feature points; outputting a final matching pair to complete multi-source image correspondence after an accumulation operation.


In some embodiments, constructing a two-dimensional log-Gabor filter for the two-dimensional image is represented specifically as:








G

(

σ
,
μ

)


(

ρ
,
δ

)

=


exp

(



(

ρ
-

ρ
σ


)

2



-
2



B
ρ
2



)

·

exp

(



(

δ
-

δ

(

σ
,
μ

)



)

2



-
2



B
δ
2



)







where, Bρ and Bδ respectively represent bandwidths of the filter in the orientation of pole diameter ρ and polar angle δ, σ and μ represent scale and orientation of the two-dimensional log-Gabor filter G, ρσ represents a center frequency of the filter, δ(σ,μ) represents angular frequency in a polar coordinate.


In some embodiments, converting the two-dimensional log-Gabor filter from a frequency domain to a spatial domain based on Fourier inverse transform is represented as:








G

(

σ
,
μ

)


(

x
,
y

)

=



G

(

σ
,
μ

)


e

ν

e


(

ρ
,
δ

)

+

i
·


G

(

σ
,
μ

)

odd

(

ρ
,
δ

)








where,







G

(

σ
,
μ

)


e

v

e


(

x
,
y

)





and







G

(

σ
,
μ

)

odd

(

x
,
y

)





represent even-symmetric and odd-symmetric of the two-dimensional log-Gabor filter G, respectively; i represent the imaginary unit.


In some embodiments, constructing a multi-orientation phase consistency model based on phase consistency model and phase consistency weighted moments in multiple orientations is represented as:







W
σ

=


0
.
5

×

(


M
σ

+

M
σ

+

ϖ
×

(


M
σ

-

M
σ


)



)








{





M
σ

=


1
2



(




μ



(

β
σ

)

2


+



μ



(

α
σ

)

2


+














(

2




μ



(

α
σ

)



(

β
σ

)




)

2

+


(




μ



(

α
σ

)

2


-



μ



(

β
σ

)

2



)

2



)


,







M
σ

=


1
2



(




μ



(

β
σ

)

2


+



μ



(

α
σ

)

2


-














(

2




μ



(

α
σ

)



(

β
σ

)




)

2

+


(




μ



(

α
σ

)

2


-



μ



(

β
σ

)

2



)

2



)


,











α
σ

=

P



C

(

x
,
y

)

·

cos

(

ϕ

(

σ
,
μ

)


)










β
σ

=

P



C

(

x
,
y

)

·

sin

(

ϕ

(

σ
,
μ

)


)










PC

(

x
,
y

)

=




σ




μ




ω
σ

(

x
,
y

)








A

(

σ
,
μ

)


(

x
,
y

)


Δ



P

(

σ
,
μ

)


(

x
,
y

)


-
γ










σ




μ



A

(

σ
,
μ

)


(

x
,
y

)



+

o
`









{






A

(

σ
,
μ

)


(

x
,
y

)

=


(




E

(

σ
,
μ

)


(

x
,
y

)

2

+



O

(

σ
,
μ

)


(

x
,
y

)

2


)

0.5










P

(

σ
,
μ

)


(

x
,
y

)

=


arctan

(



O

(

σ
,
μ

)


(

x
,
y

)

/


E

(

σ
,
μ

)


(

x
,
y

)


)


,












E

(

σ
,
μ

)


(

x
,
y

)

=


I

(

x
,
y

)

*


G

(

σ
,
μ

)

eve

(

x
,
y

)










O

(

σ
,
μ

)


(

x
,
y

)

=


I

(

x
,
y

)

*


G

(

σ
,
μ

)

odd

(

x
,

y

)







where, A(σ,μ)(x,y) represents the amplitude component, P(σ,μ)(x,y) represents the phase component, ωσ(x,y) is a weight coefficient, └•┘ is a truncation function, Δcustom character(σ,μ)(x,y) is phase deviation with respect to the scale σ and orientation μ; γ and ò are constant; Mσ and Mσ represent a maximum moment and a minimum moment corresponding to the scale σ; ω represent a weighted moment coefficient of orientation, PC represent the phase consistency model; Wσ represent the multi-orientation phase consistency model, I(x,y) represent the two-dimensional image, G(σ,μ)eve(x,y) and G(σ,μ)odd(x,y) represent the even-symmetric and odd-symmetric of the two-dimensional log-Gabor filter G, respectively.


In some embodiments, calculating the orientational histogram of each sub-region as a descriptor and defining a quantified orientation histogram for each feature point as a descriptor are represented as:

custom characterd={custom character(1,1)·custom character(1,1), . . . ,custom character(h,lcustom character(h,q), . . . ,custom character(n,kcustom character(n,m)},∀h∈{1, . . . ,n},∀q∈{1, . . . ,m},∀l∈{1, . . . ,k}

where, R(h,t) represents a sub-region of a qth radial quantization and ith angular quantization; custom character(h,q) represents an orientation histogram that is quantized of the qth histogram in hth radial quantization; n is the amount of radial quantization; m is the number of histogram quantization; κ is the number of angular quantization; dimension of each descriptor is described as d=Σh=1nmh·kh.


In some embodiments, the calculating a transformation error of any two feature points in the reference image and target image with respect to the model hypotheses with Sampson distance and forming an ascending permutation are represented as:

λi(v)=[λi,1(v)i,2(v), . . . ,λi,M(v)]

which satisfies τθi(v)i,1(v)≤ . . . ≤τθi(v)i,M(v), λi(v) represents preference of feature points with respect to each model type, τθi(v) represents the transformation error of any two feature points (si,s′i) with respect to the model hypotheses θi(v), si and s′i respectively represent coordinates of two feature points from the reference image and the target image.


In some embodiments, selecting the least k-th-order statistic of a square transformation error as a minimum cost is represented as:







C

(

θ

(
v
)


)

=




j
=

k
-
p
+
1


k


λ
j

2


(
v
)









where, λj2(v) denotes a jth sorted squared transformation error, and p represents the size of multiple minimum subsets that is randomly sampled.


In some embodiments, a constructed joint position offset transformation error is represented as:

J(v)(si,s′j)=(1+E(v)(si,s′jD(si,s′j)

where, si and s′j represent feature points in two heterogeneous images, respectively; subscripts i and j represent indexes of feature points in the image, D(si, s′j) denotes inverse cosine similarity of descriptors corresponding to si and s′j, E(v)(si,s′j)=∥si−τθi(v)(si,s′j)∥ represent a positional transformation error between matching pair (si, s′j), and τθi(v) represent the transformation error of any two feature points (si, s′i) with respect to the model hypotheses.


In some embodiments, the accumulating matching pairs from different heterogeneous models with a small joint position offset transformation error is represented as:







S
*

=

F

(




ν

V




S
~


(
v
)



)






where, F(·) denotes removing duplicates by traversing all candidate matching pairs, {tilde over (S)}(v) represents a candidate matching pair defined by the joint position offset transformation error,








v

V






represents an accumulating operation performed on each heterogeneous model, and V represents the heterogeneous model.


The present disclosure further provides a multi-source image correspondence system based on heterogeneous model fitting, including:

    • an image acquisition module, a log-Gabor filter construction module, a frequency domain conversion module, a multi-orientation phase consistency model construction module, an image feature information extraction module, a variable-size bin strategy construction module, a descriptor construction module, a normalization module, a target image acquisition module, an optimal geometric transformation model construction module, an initial matching pair construction module, a model hypothesis generation module, a minimum cost calculation module, a joint position offset transformation error construction module, and a matching output module;
    • the image acquisition module is configured to obtain a two-dimensional image;
    • the log-Gabor filter construction module is configured to construct a two-dimensional log-Gabor filter for the two-dimensional image;
    • the frequency domain conversion module is configured to transform the two-dimensional log-Gabor filter from a frequency domain to a spatial domain based on a Fourier inverse transform;
    • the multi-orientation phase consistency model construction module is configured to construct a multi-orientation phase consistency model, calculate an amplitude component and a phase component with respect to the scale and orientation, construct a phase consistency model based on the amplitude component and phase component, calculate phase consistency weighted moments in multiple orientations, and construct a multi-orientation phase consistency model based on phase consistency model and phase consistency weighted moments in multiple orientations;
    • the image feature information extraction module is configured to extract image feature information from the multi-orientation phase consistency model by using the Shi-Tomasi operator, filter out a feature point with a response value below a set threshold;
    • the variable-size bin strategy construction module is configured to construct a variable-size bin strategy based on image feature information, the variable-size bin strategy divides a circular neighborhood of feature distribution into a plurality of sub-regions with different numbers according to different angle quantization rules, and different circular neighborhoods use gradient orientation histograms with different dimensions as a local descriptor;
    • the descriptor construction module is configured to calculate the orientation histogram of each sub-region as a descriptor, define a quantified orientation histogram for each feature point as a descriptor, and normalize a descriptor vector;
    • the normalization module is configured to normalize a descriptor vector;
    • the target image acquisition module is configured to take the two-dimensional image as a reference image to obtain a to-be-matched target image;
    • the optimal geometric transformation model construction module is configured to construct an optimal geometric transformation model, minimize feature information between the reference image and the target image;
    • the initial matching construction module is configured to obtain coordinates of two feature points from the reference image and the target image, respectively; and construct an initial matching pair;
    • the model hypotheses generation module is configured to generate multiple model hypotheses for every two images based on the heterogeneous model, the model hypotheses are generated by randomly sampling multiple minimum subsets from feature points in the model hypotheses;
    • the minimum cost calculation module is configured to calculate a transformation error of any two feature points in the reference image and target image with respect to the model hypotheses using Sampson distance, form an ascending permutation, select the least k-th-order statistic of a square transformation error as a minimum cost, k represents an acceptable size of a structure;
    • the joint position offset transformation error construction module is configured to construct a joint position offset transformation error, which combines horizontal displacement, vertical displacement, and cosine similarity of descriptor vectors as a constraint criteria to extract more matching pairs; calculate offset of matching pairs in horizontal and vertical orientations as a position transformation error constraint feature descriptor, and construct a joint position offset transformation error;
    • the matching output module is configured to accumulate matching pairs from different heterogeneous models that meet a preset joint position offset transformation error; retain only one matching pair when two matching pairs have the same feature points, output a final matching pair to complete multi-source image correspondence after an accumulation operation.


Compared with prior art, the present disclosure has the following advantages and beneficial effects:


(1) The present disclosure constructs a multi-orientation phase consistency model to alleviate the influence of nonlinear radiation distortion, sub-region grids and orientation histograms are used to construct logarithmic polar coordinate descriptors with variable-size bins, and the heterogeneous model fitting method is used to remove abnormal matching relationships in multi-source images, thereby improving the accuracy and robustness of feature detection.


(2) The present disclosure adopts a robust heterogeneous model fitting technique, which solves the technical problem of the influence of the limitation of a single basic transformation model on the performance of image correspondence in multi-source image correspondence. It effectively fuses different types of basic models, thereby improving the performance of multi-source image correspondence.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a flowchart of a multi-source image correspondence method based on heterogeneous model fitting of the present disclosure.



FIG. 2 is a schematic diagram of a variable-size bin strategy of an embodiment of the present disclosure.



FIG. 3 is a comparison diagram of matching results between the present disclosure and a similar model, an affine model, and a perspective model on the TENM-DS dataset.



FIG. 4A is a schematic diagram of the present disclosure establishing a corresponding matching relationship between an optical image and a depth image.



FIG. 4B is a schematic diagram of the present disclosure establishing a corresponding matching relationship between a map and an optical image.





DESCRIPTION OF EMBODIMENTS

In order to make the purpose, technical solution, and advantages of the present disclosure clearer and untestable, the following will provide further detailed explanations of the present disclosure in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only intended to explain the present disclosure and are not intended to limit the present disclosure.


Embodiment 1

As shown in FIG. 1, this embodiment provides a multi-source image correspondence method based on heterogeneous model fitting, including the following steps:

    • S1: Preparing a set of initial matching coordinates S, a heterogeneous model V, model hypotheses with a number of M, and an acceptable size of a structure with a number of k;
    • S2: Constructing a multi-orientation phase consistency model, fusing phase consistency, image amplitude, and orientation detection feature point;


In this embodiment, the multi-orientation phase consistency model is constructed for multi-orientation feature detection, and which includes specific steps:

    • S21: Giving a two-dimensional image I(x,y), a two-dimensional log-Gabor filter G for the image can be represented as:











G

(

σ
,
μ

)




(

ρ
,
δ

)


=

exp



(



(

ρ
-

ρ
σ


)

2



-
2



B
ρ
2



)

·
exp



(



(

δ
-

δ

(

σ
,
μ

)



)

2



-
2



B
δ
2



)






(

Formula


1

)









    • where, Bρ and Bδ indicate bandwidths of the filter in orientation of pole diameter ρ and polar angle δ, the bandwidth refers to a range of the filter in frequency and orientation, which determines a response degree of the filter to different frequencies or orientations; σ and μ represent scale and orientation of the two-dimensional log-Gabor filter G, ρσ represents a center frequency of the filter, δ(σ,μ) represents angular frequency in a polar coordinate;

    • S22: converting the two-dimensional log-Gabor filter G from a frequency domain to a spatial domain based on Fourier inverse transform, and it is represented as:















G

(

σ
,
μ

)




(

x
,
y

)


=



G

(

σ
,
μ

)


e

ν

e




(

ρ
,
δ

)


+


i
·

G

(

σ
,
μ

)

odd




(

ρ
,
δ

)




,




(

Formula


2

)









    • where,










G

(

σ
,
μ

)


e

v

e


(

x
,
y

)






    •  and










G

(

σ
,
μ

)

odd

(

x
,
y

)






    •  represent even-symmetric and odd-symmetric of the two-dimensional log-Gabor filter, respectively; i represent imaginary unit;

    • S23: calculating an amplitude component A(σ,μ)(x,y) and a phase component P(σ,μ)(x,y) with respect to the scale σ and orientation μ:












{






A

(

σ
,
μ

)


(

x
,
y

)

=


(




E

(

σ
,
μ

)


(

x
,
y

)

2

+



O

(

σ
,
μ

)


(

x
,
y

)

2


)

0.5










P

(

σ
,
μ

)


(

x
,
y

)

=

arctan

(



O

(

σ
,
μ

)


(

x
,
y

)

/


E

(

σ
,
μ

)


(

x
,
y

)


)


,








(

Formula


3

)









    • where, E(σ,μ)(x,y)=I(x,y)*G(σ,μ)eve(x,y), O(σ,μ)(x,y)=I(x,y)*G(σ,μ)odd(x,y) represents a log-Gabor response obtained by performing convolution operation at scale σ and orientation μ.





S24: Constructing a phase consistency (PC) model based on the amplitude component A(σ,μ)(x,y) and phase component P(σ,μ)(x,y),










P


C

(

x
,
y

)


=




σ




μ




ω
σ

(

x
,
y

)








A

(

σ
,
μ

)


(

x
,
y

)


Δ



P

(

σ
,
μ

)


(

x
,
y

)


-
γ










σ




μ



A

(

σ
,
μ

)


(

x
,
y

)



+
ò






(

Formula


4

)








where, ωσ(x,y) is a weight coefficient, └•┘ is a truncation function, it is used to truncate a real number to an integer, which can effectively alleviate the influence of nonlinear radiative distortions (NRDs); A(σ,μ)(x,y) is the amplitude component; ΔP(σ,μ)(x,y) denotes a phase deviation with respect to the scale σ and orientation μ; γ and ò are constant so as to avoid the denominator being 0.


S25: Calculating phase consistency weighted moments for multiple orientations so as to enhance robustness;









{






M
σ

=


1
2



(




μ



(

β
σ

)

2


+



μ



(

α
σ

)

2


+





(

2




μ



(

α
σ

)



(

β
σ

)




)

2

+


(




μ



(

α
σ

)

2


-



μ



(

β
σ

)

2



)

2




)




,








M
σ

=


1
2



(




μ



(

β
σ

)

2


+



μ



(

α
σ

)

2


-





(

2




μ



(

α
σ

)



(

β
σ

)




)

2

+


(




μ



(

α
σ

)

2


-



μ



(

β
σ

)

2



)

2




)




,








(

For

m

u

l

a


5

)








where, Mσ and Mσ represent a maximum moment and a minimum moment corresponding to the scale σ; ασ=PC(x,y)·cos(ϕ(σ,μ)), βσ=PC(x,y)·sin(ϕ(σ,μ)) and (ϕ(σ,μ), represent the angular of orientation μ at scale σ.


S26: Constructing a multi-orientation phase consistency model based on phase consistency model Wσ and multi-orientation weighted moments to alleviate the influence of nonlinear radiative distortions (NRDs):

Wσ=0.5×(Mσ+Mσ+ω×(Mσ−Mσ))  (Formula 6)

where, ω represent a weight coefficient of orientation.


S27: Extracting a feature point from the multi-orientation phase consistency model Wσ by using the Shi-Tomasi operator, filtering out a feature point with a response value below a set threshold; Specifically, the Shi-Tomasi operator first calculates a structural tensor of each pixel in the multi-orientation phase consistency model Wσ to obtain a minimum feature value of each pixel. Then, based on the set threshold, the pixel with a larger minimum feature value is selected as a corner point, the feature information represents prominent features in the image, such as corners and edges. The extracted feature information will participate in a subsequent descriptor construction.


S3: Constructing a logarithmic polar coordinate descriptor with variable-size bins using sub-region grids and orientation histograms, this descriptor is robust to geometric distortion;

    • this embodiment constructs the logarithmic polar coordinate descriptor with variable-size bins, which can improve the ability of the descriptor to distinguish a local geometric distortion and establish a high-quality initial correspondence, and it includes the following steps:


S31: As shown in FIG. 2, a variable-size bin strategy is constructed based on feature position information extracted by the Shi-Tomasi operator, as the contribution of a central region to the feature description is usually greater than that of a surrounding region. Therefore, unlike traditional methods where each circular-shape uses the same number of sub-regions, this strategy divides the circular neighborhood into a plurality of sub-regions with different numbers according to different angle quantization rules, and different circular neighborhoods use gradient orientation histograms with different dimensions as a local descriptor to adapt to different feature distributions, thereby improving the stability and robustness of the descriptor.


S32: Calculating an orientational histogram of each sub-region as a descriptor and defining a quantified orientation histogram for each feature point as a descriptor, and it is represented as:

custom characterd={custom character(1,1)·custom character(1,1), . . . ,custom character(h,lcustom character(h,q), . . . ,custom character(n,kcustom character(n,m)},∀h∈{1, . . . ,n},∀q∈{1, . . . ,m},∀l∈{1, . . . ,k}  (Formula 7)

where, R(h,t) represents a sub-region of a qth radial quantization and ith angular quantization; custom character(h,q) represents an orientation histogram that is quantized of the qth histogram in hth radial quantization; n denotes the amount of radial quantization; m is the number of histogram quantization; κ is the number of angular quantization; thus, the dimension of each descriptor can be described as d=Σh=1nmk·kh.


S33: Normalizing a descriptor vector to reduce the influence of illumination variations. A normalized descriptor vector can be used in a subsequent matching process to calculate and evaluate a similarity between image pairs and obtain a determined initial matching pair.


S4: Effectively estimating a parameter of the model by fitting the heterogeneous model and fusing advantages of various basic transformation models so as to effectively estimate the parameter of the model and alleviate the influence of an outlier; the specific steps include:

    • S41: giving a two-dimensional image (i.e., a reference image) I(x,y) and another image that needs to be matched (a target image) I′(x,y), a goal of this step is to find an optimal geometric transformation model {circumflex over (f)}(x,y) so as to minimize the feature information (such as distance) between the reference image I(x,y) and the transformed target image I′(f(x,y)):

      {circumflex over (f)}(x,y)=argmin[Φ(I(x,y),I′(f(x,y)))](Formula 8)

      where, f(x,y), I′(f(x,y)), and Φ are the geometric transformation model, a transformed target image, and a distance metric; {circumflex over (f)}(x,y) represents the optimal geometric transformation model and which refers to a geometric transformation model that can minimize the feature information distance. For example, feature point pairs between two images can be used to estimate an affine transformation matrix (also known as an affine transformation model). If there are enough feature points can be found to support the affine transformation model (i.e. minimizing the distance between the feature point and the model), then the current geometric transformation is considered an optimal geometric transformation model (i.e. the optimal geometric transformation model). In addition, due to factors such as deformation in images, accurate matching between the two images requires compliance with the constraints of geometric transformation models.


S42: Giving a set of initial matching pairs S={(si,s′i)}i=1N where N is the number of matching pairs, si=(xi,yi) and s′i=(xi,yi) represents the coordinates of two feature points from the reference image and the target image, respectively.


S43: Generating a model hypothesis θ(v)={θi(v)}i=1:M for every two images and for each type of model v∈V, where, v∈V represents the heterogeneous model (i.e., a collection of different types of models, including a similarity transformation model, an affine transformation model, and a perspective transformation model). These model hypotheses are generated by randomly sampling a minimum subset p from feature points.


S4: Calculating a transformation error τθi(v)(si,s′i) of any two feature points (si,s′i) in the reference image and target image with respect to the model hypotheses θi(v) with Sampson distance, forming an ascending permutation:

λi(v)=[λi,1(v)i,2(v), . . . ,λi,M(v)]  (Formula 9)

which satisfies τθi(v)i,1(v)≤ . . . ≤τθi(v)i,M(v), λi(v) represents the preference of feature points with respect to each model type, its value is small if the feature point belongs to the inlier of a transformation model, and vice versa.


S45: Introducing a modified cost function to select the least k-th-order statistic of a square transformation error as a minimum cost:










C

(

θ

(
v
)


)

=




j
=

k
-
p
+
1


k


λ
j

2


(
v
)








(

Formula


10

)








where, λj2(v) denotes a jth sorted squared transformation error, and k represents an acceptable size of a structure, which is greater than the size of a minimum subset (k»p).


S46: Effectively quantified the significant transformation model as the minimum cost of the k-th-order statistic with the above cost function and then combined with horizontal, vertical displacement and cosine similarity of descriptor vectors as a constraint criterion to extract more correct matching pairs.


S47: Evaluating the quality of model hypotheses that are generated by random sampling through minimizing the k-th-order statistic of a square transformation error by a significant transformation model. Based on the significant transformation model, a small number of reliable feature matching pairs can be obtained. However, significant models typically only contain a small number of reliable feature matching pairs. Therefore, it is necessary to calculate offsets of these matching pairs in the horizontal and vertical orientations as position transformation errors to constrain the feature descriptors. Specifically, their offsets in the horizontal and vertical orientations can be obtained by calculating the Euclidean distance between the matching pairs. Then, these offsets are used as position transformation errors to constrain the feature descriptors. Finally, a joint position offset transformation error J(v)(si,s′j) is defined as:

J(v)(si,s′j)=(1+E(v)(si,s′jD(si,s′j)  (Formula 11)

where, si and s′j represent feature points in two heterogeneous images, respectively. The subscripts i and j are used to represent indexes of feature points in the image, D(si,s′j) denotes inverse cosine similarity of descriptors corresponding si and s′j, and E(v)(si,s′j)=∥si−τθi(v)(si,s′j)∥ represents positional transformation error between matching pairs (si,s′j). It is necessary to traverse all possible matching pairs and calculate their similarity to determine which matching pairs are correct. When the joint position offset transformation error is less than a certain threshold, feature points si and s′j are considered the candidate matching pairs {tilde over (S)}(v).


S48: Accumulating matching pairs with smaller joint position offset transformation error from different models (i.e. similarity model, affine model, perspective model, etc.).










S
*

=

F

(




v

V




S
~


(
ν
)



)





(

Formula


12

)








where, F(·) represents removing duplicates by traversing all candidate matching pairs, if two matching pairs have the same feature points, only one matching pair is retained; {tilde over (S)}(v) represents a candidate matching pair defined by joint position offset transformation error,








v

V






represents an accumulating operation performed on each heterogeneous model.


S5: Outputting a final matching pair S*.


As shown in FIG. 3, the results of image correspondence between the present disclosure and three basic transformation models (i.e., similarity model, affine model, and perspective model) on the TENM-DS dataset are compared; there are 432 similar models with a root mean square error of 1.91, there are 367 affine models with a root mean square error of 1.83, there are 153 perspective models with a root mean square error of 1.65, there are 584 in the present disclosure with a root mean square error of 1.79. The experimental results show that the present disclosure can effectively fuse the advantages of multiple transformation models, which improves the accuracy and robustness of matching. As shown in FIGS. 4A and 4B, the present disclosure can establish corresponding matching relationships between an optical image and a depth image, as well as between a map and the optical image.


Embodiment 2

This embodiment has the same technical solution as the embodiment 1, except for the following technical solution.


This embodiment provides a multi-source image correspondence system based on heterogeneous model fitting, including: an image acquisition module, a log-Gabor filter construction module, a frequency domain conversion module, a multi-orientation phase consistency model construction module, an image feature information extraction module, a variable-size bin strategy construction module, a descriptor construction module, a normalization module, a target image acquisition module, an optimal geometric transformation model construction module, an initial matching pair construction module, a model hypothesis generation module, a minimum cost calculation module, a joint position offset transformation error construction module, and a matching output module.


In this embodiment, the image acquisition module is configured to obtain a two-dimensional image.


In this embodiment, the log-Gabor filter construction module is configured to construct a two-dimensional log-Gabor filter for the two-dimensional image.


In this embodiment, the frequency domain conversion module is configured to transform the two-dimensional log-Gabor filter from a frequency domain to a spatial domain based on a Fourier inverse transform.


In this embodiment, the multi-orientation phase consistency model construction module is configured to construct a multi-orientation phase consistency model, calculate an amplitude component and a phase component with respect to the scale and orientation, construct a phase consistency model based on the amplitude component and phase component, calculate phase consistency weighted moments in multiple orientations, and construct a multi-orientation phase consistency model based on phase consistency model and phase consistency weighted moments in multiple orientations.


In this embodiment, the image feature information extraction module is configured to extract image feature information from the multi-orientation phase consistency model by using the Shi-Tomasi operator, to filter out a feature point with a response value below a set threshold.


In this embodiment, the variable-size bin strategy construction module is configured to construct a variable-size bin strategy based on image feature information, the variable-size bin strategy divides a circular neighborhood of feature distribution into a plurality of sub-regions with different numbers according to different angle quantization rules, and different circular neighborhoods use gradient orientation histograms with different dimensions as a local descriptor.


In this embodiment, the descriptor construction module is configured to calculate the orientation histogram of each sub-region as a descriptor, and define a quantified orientation histogram for each feature point as a descriptor.


In this embodiment, the normalization module is configured to normalize a descriptor vector.


In this embodiment, the target image acquisition module is configured to take the two-dimensional image as a reference image to obtain a to-be-matched target image.


In this embodiment, the optimal geometric transformation model construction module is configured to construct an optimal geometric transformation model, and minimize feature information between the reference image and the target image.


In this embodiment, the initial matching construction module is configured to obtain the coordinates of two feature points from the reference image and the target image, respectively; and construct an initial matching pair.


In this embodiment, the model hypotheses generation module is configured to generate multiple model hypotheses for every two images based on the heterogeneous model, the model hypotheses are generated by randomly sampling multiple minimum subsets from feature points in the model hypotheses.


In this embodiment, the minimum cost calculation module is configured to calculate a transformation error of any two feature points in the reference image and target image with respect to the model hypotheses using Sampson distance, form an ascending permutation, select the least k-th-order statistic of a square transformation error as a minimum cost, k represents an acceptable size of a structure.


In this embodiment, the joint position offset transformation error construction module is configured to construct a joint position offset transformation error, which combines horizontal displacement, vertical displacement, and cosine similarity of descriptor vectors as a constraint criteria to extract more matching pairs; calculate offset of matching pairs in horizontal and vertical orientations as a position transformation error constraint feature descriptor, and construct a joint position offset transformation error.


In this embodiment, the matching output module is configured to accumulate matching pairs from different heterogeneous models that meet a preset joint position offset transformation error; retain only one matching pair when two matching pairs have the same feature points, output a final matching pair to complete multi-source image correspondence after an accumulation operation.


The above embodiments are preferred embodiments of the present disclosure, but the embodiments of the present disclosure are not limited by the above embodiments. Any other changes, modifications, substitutions, combinations, or simplifications that do not deviate from the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims
  • 1. A multi-source image correspondence method based on heterogeneous model fitting, comprising the following steps: obtaining a two-dimensional image, constructing a two-dimensional log-Gabor filter for the two-dimensional image, and it is represented as:
  • 2. The multi-source image correspondence method based on heterogeneous model fitting as claimed in claim 1, wherein the calculating the orientational histogram of each sub-region as a descriptor and defining a quantified orientation histogram for each feature point as a descriptor are represented as: d={(1,1)·(1,1), . . . ,(h,l)·(h,q), . . . ,(n,k)·(n,m)},∀h∈{1, . . . ,n},∀q∈{1, . . . ,m},∀l∈{1, . . . ,k}wherein, (h,l) represents a sub-region of a qth radial quantization and ith angular quantization; (h,q) represents an orientation histogram that is quantized of the qth histogram in hth radial quantization; n is the number of radial quantization; m is the number of histogram quantization; κ is the number of angular quantization; dimension of each descriptor is described as
  • 3. The multi-source image correspondence method based on heterogeneous model fitting as claimed in claim 1, wherein the calculating a transformation error of any two feature points in the reference image and target image with respect to the model hypotheses with Sampson distance and forming an ascending permutation are represented as: λi(v)=[λi,1(v),λi,2(v), . . . ,λi,M(v)]which satisfies τθi(v),λi,1(v)≤ . . . ≤τθi(v),λi,M(v), λi(v) represents preference of feature points with respect to, τθi(v) represents the transformation error of any two feature points with respect to the model hypotheses, si and s′i respectively represent coordinates of two feature points from the reference image and the target image.
  • 4. The multi-source image correspondence method based on heterogeneous model fitting as claimed in claim 1, wherein the selecting the least k-th-order statistic of a square transformation error as a minimum cost is represented as:
  • 5. The multi-source image correspondence method based on heterogeneous model fitting as claimed in claim 1, wherein a constructed joint position offset transformation error is represented as: (v)(si,s′j)=(1+(v)(sis′j))·(si,s′j)wherein, si and s′j represent feature points in two heterogeneous images, respectively; subscripts i and j represent indexes of feature points in the image, (si,s′j) denotes inverse cosine similarity of descriptors corresponding to si and s′j, (v)(si,s′j)=∥si−τθi(v)(si,s′j)∥ represent a positional transformation error between matching pair (si,s′j), and τθi(v) represent the transformation error of any two feature points relative to the model hypotheses.
  • 6. The multi-source image correspondence method based on heterogeneous model fitting as claimed in claim 1, wherein the accumulating matching pairs from different heterogeneous models with a small joint position offset transformation error is represented as:
Priority Claims (1)
Number Date Country Kind
202311050564.1 Aug 2023 CN national
US Referenced Citations (2)
Number Name Date Kind
8582889 Vaddadi Nov 2013 B2
20050238198 Brown Oct 2005 A1
Foreign Referenced Citations (6)
Number Date Country
109523585 Mar 2019 CN
111126508 May 2020 CN
111292336 Jun 2020 CN
113409369 Sep 2021 CN
115601569 Jan 2023 CN
113256653 May 2023 CN