sift

Can't use SURF, SIFT in OpenCV

谁都会走 提交于 2019-11-27 00:17:45
I'm trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT' I do not understand that because cv2 is installed. cv2.__version__ is $Rev: 4557 $ My system is Ubuntu 12.04. Maybe someone has got the same problem and could help me. EDIT: Long story short, testypypypy.py : import cv2 detector = cv2.SIFT() ERROR: Traceback (most recent call last): File "testypypy.py", line 3, in <module> detector = cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT If I take SURF it works because SURF is in

How to use SIFT algorithm to compute how similar two images are?

不想你离开。 提交于 2019-11-26 12:34:53
问题 I have used the SIFT implementation of Andrea Vedaldi, to calculate the sift descriptors of two similar images (the second image is actually a zoomed in picture of the same object from a different angle). Now I am not able to figure out how to compare the descriptors to tell how similar the images are ? I know that this question is not answerable unless you have actually played with these sort of things before, but I thought that somebody who has done this before might know this , so I posted

Sift implementation with OpenCV 2.2

怎甘沉沦 提交于 2019-11-26 10:17:07
问题 Does someone know the link of example of SIFT implementation with OpenCV 2.2. regards, 回答1: Below is a minimal example: #include <opencv/cv.h> #include <opencv/highgui.h> int main(int argc, const char* argv[]) { const cv::Mat input = cv::imread("input.jpg", 0); //Load as grayscale cv::SiftFeatureDetector detector; std::vector<cv::KeyPoint> keypoints; detector.detect(input, keypoints); // Add results to image and save. cv::Mat output; cv::drawKeypoints(input, keypoints, output); cv::imwrite(

Can&#39;t use SURF, SIFT in OpenCV

混江龙づ霸主 提交于 2019-11-26 09:18:26
问题 I\'m trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError: \'module\' object has no attribute \'SIFT\' I do not understand that because cv2 is installed. cv2.__version__ is $Rev: 4557 $ My system is Ubuntu 12.04. Maybe someone has got the same problem and could help me. EDIT: Long story short, testypypypy.py : import cv2 detector = cv2.SIFT() ERROR: Traceback (most recent call last): File \"testypypy.py\", line 3, in <module> detector =