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

縮放和旋轉模板匹配

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

問題描述

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

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?

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

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

推薦答案

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

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

您應該嘗試 Features2D 框架中的 openCV 函數.例如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.

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

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

更新:

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

In short, algorithm is this:

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

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

尋找場景圖像的關鍵點2.1 從關鍵點中提取描述符

Finding keypoints of your scene image 2.1 Extracting descriptors from keypoints

通過匹配器匹配描述符

分析你的匹配

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

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 )

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

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

相關文檔推薦

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++ 中旋轉圖像而不使用 OpenCV 函數)
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 無法設置 SVM 參數)
Convert a single color with cvtColor(使用 cvtColor 轉換單一顏色)
主站蜘蛛池模板: 国产综合精品 | 超碰97干| 毛片一级片 | 国产精品久久久爽爽爽麻豆色哟哟 | 看羞羞视频免费 | 9porny九色视频自拍 | 亚洲成人三区 | 久久99蜜桃综合影院免费观看 | 国产精品一区二区三区四区 | 美女福利视频一区 | 欧美日韩一 | 麻豆精品国产91久久久久久 | 国产成人精品999在线观看 | 成人三级视频在线观看 | 久久这里只有精品首页 | 欧美日韩在线观看视频网站 | 国产婷婷在线视频 | 中文字幕一区二区三区在线观看 | 日韩精品久久久久久 | 香蕉久久a毛片 | 日韩一级精品视频在线观看 | av在线天堂| 九九久久99 | 国产无套一区二区三区久久 | 怡红院免费的全部视频 | 国产一区二区三区在线 | 中文字幕乱码一区二区三区 | 国产做a爱免费视频 | 精品视频在线观看 | 欧美精品一区二区三区视频 | 精品一区二区观看 | 中文在线a在线 | 久草网址| 欧美手机在线 | 亚洲男女视频在线观看 | 日韩精品在线看 | 91aiai| 蜜桃视频在线观看免费视频网站www | 国产亚洲欧美在线 | 国产精品视频网址 | 欧美一区二区成人 |