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.
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.
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.
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:
In some embodiments, constructing a two-dimensional log-Gabor filter for the two-dimensional image is represented specifically as:
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:
where,
and
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:
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, Δ(σ,μ)(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 σ;
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:
d={(1,1)·(1,1), . . . ,(h,l)·(h,q), . . . ,(n,k)·(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; (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 τθ
In some embodiments, selecting the least k-th-order statistic of a square transformation error as a minimum cost is represented as:
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′j)·D(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−τθ
In some embodiments, the accumulating matching pairs from different heterogeneous models with a small joint position offset transformation error is represented as:
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,
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:
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.
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.
As shown in
In this embodiment, the multi-orientation phase consistency model is constructed for multi-orientation feature detection, and which includes specific steps:
S24: Constructing a phase consistency (PC) model based on the amplitude component A(σ,μ)(x,y) and phase component P(σ,μ)(x,y),
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;
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σ+
where,
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;
S31: As shown in
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:
d={(1,1)·(1,1), . . . ,(h,l)·(h,q), . . . ,(n,k)·(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; (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:
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)=[λi,1(v),λi,2(v), . . . ,λi,M(v)] (Formula 9)
which satisfies τθ
S45: Introducing a modified cost function to select the least k-th-order statistic of a square transformation error as a minimum cost:
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′j)·D(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−τθ
S48: Accumulating matching pairs with smaller joint position offset transformation error from different models (i.e. similarity model, affine model, perspective model, etc.).
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,
represents an accumulating operation performed on each heterogeneous model.
S5: Outputting a final matching pair S*.
As shown in
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.
Number | Date | Country | Kind |
---|---|---|---|
202311050564.1 | Aug 2023 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
8582889 | Vaddadi | Nov 2013 | B2 |
20050238198 | Brown | Oct 2005 | A1 |
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 |