Updated by Kirill Kornyakov over 12 years ago

Hi, I am not an expert but when I tried running the sample provided at: at :
http://docs.opencv.org/2.4.3rc/doc/tutorials/features2d/trackingmotion/generic_corner_detector/generic_corner_detector.html

at lines

<pre>
float lambda_1 = myHarris_dst.at<float>( j, i, 0 );
float lambda_2 = myHarris_dst.at<float>( j, i, 1 );
</pre>


the VisualStudio threw an exception. Then I changed the code to

<pre>
float lambda_1 = myHarris_dst.ptr<float>(j)[6*i+0];
float lambda_2 = myHarris_dst.ptr<float>(j)[6*i+1];
</pre>


which worked just fine for my case.. I am not sure if other people are facing the same issue.

Thx.

Back