A Global Search Method for Template Image Based on Mask Matrix and Fast Fourier Transform
A technology of Fourier transform and template image, which is applied in the field of image processing, can solve the problems of high computational complexity, achieve the effects of overcoming complexity, saving processing time, and improving computing speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] In view of the problems that the template search method in the field of digital image processing has too high algorithm complexity, repeated calculations cannot be used multiple times, and certain calculation accuracy is lost, the present invention proposes a template image global search based on mask matrix and fast Fourier transform method, see figure 1 , including the following steps:
[0050] (1) Copy the template map and full map: read the original template map and full map data, where the original template map is as follows image 3 , whose size is smaller than the full image, which is the image of lena in the gallery. See figure 2 .
[0051] (2) Use the original template image to generate a mask image:
[0052] (2a) Generate a template with the original Figure 1 The full 1 matrix of sample size is the mask map;
[0053] (2b) When it is not necessary to match the target background, the element at the position representing the background area in the mask mat...
Embodiment 2
[0079] The template image global search method based on mask matrix and fast Fourier transform is the same as embodiment 1, and the template expansion graph described in step (6) and the full graph are used to formulate as follows to do circular convolution:
[0080]
[0081] Among them, F -1 Represents inverse fast Fourier transform, C stands for conjugation, F stands for fast Fourier transform, subscript 2 stands for two-dimensional transformation, t_ext stands for template expansion map, img stands for full map, and corr is the output template full map correlation matrix.
[0082] In the actual project, it can be implemented in matlab language. If it is implemented in matlab, the above formula can be expressed in functional form as:
[0083] corr=ifft2(conj(fft2(t_ext)).*fft2(img))
[0084] Among them, fft2 is the fast two-dimensional Fourier transform function in matlab, ifft2 is the fast two-dimensional inverse Fourier transform function, conj is the conjugate functi...
Embodiment 3
[0090] The template image global search method based on mask matrix and fast Fourier transform is the same as embodiment 1-2, and the energy matrix of calculating the whole image described in step (7) is expressed as follows:
[0091]
[0092] Among them, F -1 Represents inverse fast Fourier transform, C stands for conjugation, F stands for fast Fourier transform, subscript 2 stands for two-dimensional transformation, mask_ext stands for mask extension map, img stands for full image, img_energy stands for output full image energy matrix.
[0093] If you use matlab language, the above formula can be expressed as:
[0094] img_energy=ifft2(conj(fft2(mask_ext)).*fft2(img.*img))
[0095] Among them, fft2 is the fast two-dimensional Fourier transform function in matlab, ifft2 is the fast two-dimensional inverse Fourier transform function, and conj is the conjugate function to calculate the energy matrix of the whole image.
[0096] If you use the C++ language, you can write y...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com