久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

縮放和旋轉(zhuǎn)模板匹配

scale and rotation Template matching(縮放和旋轉(zhuǎn)模板匹配)
本文介紹了縮放和旋轉(zhuǎn)模板匹配的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在使用帶有 CV_TM_CCORR_NORMED 的匹配模板的方法來比較兩個圖像......我想讓這個旋轉(zhuǎn)和縮放不變......有什么想法嗎?

I'm using the method of match template with CV_TM_CCORR_NORMED to compare two images ... I want to make to make this rotation and scale invariant .. any ideas?

圖像和模板的傅里葉變換我嘗試用同樣的方法,但是旋轉(zhuǎn)后的結(jié)果還是不一樣

I tried to use the same method on the fourier transform of the image and the template , but still the result after rotation is different

推薦答案

在場景中旋轉(zhuǎn)或縮放對象時,使用 matchTemplate 的模板匹配效果不佳.

Template matching with matchTemplate is not good when your object is rotated or scaled in scene.

您應(yīng)該嘗試 Features2D 框架中的 openCV 函數(shù).例如SIFTSURF 描述符,以及FLANN 匹配器.此外,您還需要 findHomography 方法.

You should try openCV function from Features2D Framework. For example SIFT or SURF descriptors, and FLANN matcher. Also, you will need findHomography method.

這里是在場景中找到旋轉(zhuǎn)對象的一個??很好的例子.

Here is a good example of finding rotated object in scene.

更新:

簡而言之,算法是這樣的:

In short, algorithm is this:

  1. 尋找對象圖像的關(guān)鍵點1.1.從這些關(guān)鍵點中提取描述符

  1. Finding keypoints of your object image 1.1. Extracting descriptors from those keypoints

尋找場景圖像的關(guān)鍵點2.1 從關(guān)鍵點中提取描述符

Finding keypoints of your scene image 2.1 Extracting descriptors from keypoints

通過匹配器匹配描述符

分析你的匹配

有不同類別的 FeatureDetector、DescriptorExtractors 和 DescriptorMatches,您可以閱讀它們并選擇適合您的任務(wù)的那些.

There are different classes of FeatureDetectors, DescriptorExtractors, and DescriptorMatches, you may read about them and choose those, that fit good for your tasks.

  • openCV FeatureDetector(上述算法中的第 1 步和第 2 步)
  • openCV DescriptorExtractor(算法中的步驟 1.1 和 2.1上面)
  • openCV DescriptorMatcher(上述算法中的第 3 步)
  • openCV FeatureDetector (steps 1 and 2 in algorithm above)
  • openCV DescriptorExtractor ( steps 1.1 and 2.1 in algorithm above )
  • openCV DescriptorMatcher ( step 3 in algorithm above )

這篇關(guān)于縮放和旋轉(zhuǎn)模板匹配的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Assertion failed (size.widthgt;0 amp;amp; size.heightgt;0)(斷言失敗(size.width0 amp;amp; size.height0))
Rotate an image in C++ without using OpenCV functions(在 C++ 中旋轉(zhuǎn)圖像而不使用 OpenCV 函數(shù))
OpenCV: process every frame(OpenCV:處理每一幀)
Why can#39;t I open avi video in openCV?(為什么我不能在 openCV 中打開 avi 視頻?)
OpenCV unable to set up SVM Parameters(OpenCV 無法設(shè)置 SVM 參數(shù))
Convert a single color with cvtColor(使用 cvtColor 轉(zhuǎn)換單一顏色)
主站蜘蛛池模板: 日韩电影在线 | 国产精品夜夜春夜夜爽久久电影 | 天天操人人干 | a国产一区二区免费入口 | 欧美freesex黑人又粗又大 | 精品亚洲永久免费精品 | a级片www | 国产专区在线 | 久久久精品亚洲 | 精品国产一区二区三区久久久四川 | 在线观看av网站 | 午夜精品一区二区三区在线视 | 中国一级大毛片 | 337p日本欧洲亚洲大胆鲁鲁 | 日韩成人免费中文字幕 | 欧美日韩在线一区 | 日韩欧美国产精品一区二区 | 中文字幕精品一区 | 国产一区二区三区视频 | 拍拍无遮挡人做人爱视频免费观看 | 成人午夜激情 | 狠狠视频| 亚洲性爰 | 欧美成人精品一区二区男人看 | 国产成人在线播放 | a在线免费观看视频 | 亚洲高清在线 | 91素人| 日韩毛片免费看 | 成人视屏在线观看 | 成人影院网站ww555久久精品 | 国产区精品视频 | 365夜爽爽欧美性午夜免费视频 | 久久久久九九九女人毛片 | 久久亚洲国产 | 99久久精品免费 | 九九视频在线观看视频6 | 一区二区三区播放 | 亚洲一区二区在线电影 | 亚洲日韩欧美一区二区在线 | www.色53色.com |