Template Matching using FFT

后端 未结 3 527
臣服心动
臣服心动 2021-01-28 06:39

Can anyone please explain how to perform template matching using FFT. The template is smaller than the original image. 1. Everywhere it states that the template has to be padded

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-28 06:50

    The chapters 3 and 4 of Gonzalez and Woods, "Digital Image Processing" should help you acquire a better understanding of the theory.

    You need to perform a correlation between your image and your template. In some cases, it may be more efficient to perform this correlation in the frequency domain (using FFT), while in others you would want to perform the operation in the spatial domain.

    Some software systems make this choice transparent to the users. See for example the function ImageCorrelate in Mathematica (http://reference.wolfram.com/mathematica/ref/ImageCorrelate.html).

提交回复
热议问题