scale and rotation Template matching in opencv

后端 未结 2 1137
长情又很酷
长情又很酷 2021-01-14 03:42

I want to use a template image to search target in the another image.But the target have scale and rotation change,also the target mix with noise which the color is same wit

相关标签:
2条回答
  • 2021-01-14 04:13

    You need to calculate scale and rotation invariant features. There exist several feature descriptors that claim these properties. Scale invariance is often emulated by matching against a set of different scales of the target. Another way can be to normalize scale and rotation of the target first.

    Have a look here: https://dsp.stackexchange.com/questions/4893/scale-and-rotation-invariant-feature-descriptors

    0 讨论(0)
  • 2021-01-14 04:19

    You can try Generalized Hough Transform (GHT), to find contours using template. As I remember, there was ready to use implementation in opencv (gpu) examples.(opencv/samples/gpu/generalized_hough.cpp on my machine)

    Here is also useful link with source code: http://www.itriacasa.it/generalized-hough-transform/instructions.html

    0 讨论(0)
提交回复
热议问题