2D subimage detection in Open CV

后端 未结 2 608
囚心锁ツ
囚心锁ツ 2020-12-29 12:43

What\'s the most sensible algorithm, or combination of algorithms, to be using from OpenCV for the following problem:

  • I have a set of small 2D images. I want t
相关标签:
2条回答
  • 2020-12-29 13:07

    What you need is something like SIFT or SURF.

    0 讨论(0)
  • 2020-12-29 13:20
    1. cvMatchTemplate uses a MSE (SQDIFF/SQDIFF_NORMED) kind of metric for the matching. This kind of metric will penalize different alpha values severly (due to the square in the equation). Have you tried normalized cross-correlation? It is known to model linear variations in pixel intensities better.
    2. If NCC does not do the job, you will need to transform the images to a space where the intensity differences do not have much effect. e.g. Compute a edge-strength image (canny, sobel etc) and run cvMatchTemplate on these images.
    3. Considering the large difference in scales of the images (~10x). A image pyramid will have to be employed to figure out the correct scale for the matching. Recommend you start with a scale (2^1/x: x being the correct scale) and propagate the estimate up the pyramid.
    0 讨论(0)
提交回复
热议问题