Sift implementation with OpenCV 2.2 -


Does anyone know the link to example SIFT implementation with OpenCV 2.2? Below is a minimum example:

Below is a minimum example:

  # Include & lt; Opencv / cv.h & gt; #include & lt; Opencv / highgui.h & gt; Int main (int argc, const char * argv []) {const cv :: mat input = cv :: imread ("input.jpg", 0); // Load as CR: sewai: SiftFeatureDetector detector; Std :: vector & lt; CV :: KeyPoint & gt; key points; Detector.detect (input, keypoint); // Add results to the image and save. CV :: Mate Output; CV :: Drawpointpoint (input, keyboard, output); CV :: IMlight ("sift_result.jpg", output); Return 0; }   

Tested on OpenCV2

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -