Template image global searching method based on mask matrix and fast Fourier transform
A Fourier transform, template image technology, applied in the field of image processing, can solve the problem of high computational complexity, achieve the effect of overcoming complexity, improving computational speed, and saving processing time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] 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:
[0048] (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 .
[0049] (2) Use the original template image to generate a mask image:
[0050] (2a) Generate a template with the original Figure 1 The full 1 matrix of sample size is the mask map;
[0051] (2b) When the target background does not need to be matched, the element at the position representing the background area in the mask matr...
Embodiment 2
[0077] 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:
[0078] c o r r = F 2 - 1 { C [ F 2 ( t _ e x t ) ] . * F 2 ( i m g ) }
[0079] 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 ...
Embodiment 3
[0088] 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:
[0089] i m g _ e n e r g y = F 2 - 1 { C [ F 2 ( m a s k _ e x t ) ] . * F 2 ( i m g . * i m g ) }
[0090] Among them, F -1 Represents inverse fast Four...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 