title: Facing some issues in debugging ASIFT algorithm in C++ on Visual Studio 2019
body: <p>Hope you are well and safe. I found an implementation of ASIFT in C++ online(<a href="http://www.mattsheckells.com/opencv-asift-c-implementation/" rel="nofollow noreferrer">http://www.mattsheckells.com/opencv-asift-c-implementation/</a>). But for some reason, i am getting errors during runtime. I have tried and tested the same on 32 bit version with an older opencv(2.4.9), it is running fine however its slow. Now I want to test it on new opencv versions (3x,4x) but till now no success. I am using VS 2019 and compiling opencv using cmake in windows. For Opencv 3.x to access sift libraries, i am using opencv_contrib of the same version and compiling together. But there are no conclusive results. I hope you can guide me on this. I can let you know how i set things up in further edits. 
  The exact step where the debugging fails and error have been posted here.</p>
  
  <pre><code>//cv::xfeatures2d::SiftFeatureDetector detector;
  Ptr&lt;cv::xfeatures2d::SiftFeatureDetector&gt; detector = makePtr&lt;cv::xfeatures2d::SiftFeatureDetector&gt;();
  //Ptr&lt;cv::xfeatures2d::SiftFeatureDetector&gt; detector = cv::xfeatures2d::SiftFeatureDetector::create();
  //detector.detect(timg, kps, mask);
  detector-&gt;detect(timg, kps, mask);---- the program stops debugging error due to a memory error
  "Unhandled exception at 0x00007FFDEC899709 in Project1_asift.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000E5A319DDB8."
  </code></pre>
  
  <p>and i get this printed on the console:</p>
  
  <pre><code>"OpenCV(3.4.2) Error: The function/feature is not implemented () in cv::Feature2D::detectAndCompute, file c:\build\3_4_winpack-build-win64-vc15\opencv\modules\features2d\src\feature2d.cpp, line 154"
  </code></pre>
  
  <p>Hope to get a positive response.</p>
  
  <p><a href="https://i.stack.imgur.com/KBukJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KBukJ.jpg" alt="enter image description here"></a></p>