patch 4 corner detection sample possible bug (Bugfix #2532)
Description
Hi, I am not an expert but when I tried running the sample provided at:
http://docs.opencv.org/2.4.3rc/doc/tutorials/features2d/trackingmotion/generic_corner_detector/generic_corner_detector.html
at lines
float lambda_1 = myHarris_dst.at<float>( j, i, 0 ); float lambda_2 = myHarris_dst.at<float>( j, i, 1 );
the VisualStudio threw an exception. Then I changed the code to
float lambda_1 = myHarris_dst.ptr<float>(j)[6*i+0]; float lambda_2 = myHarris_dst.ptr<float>(j)[6*i+1];
which worked just fine for my case.. I am not sure if other people are facing the same issue.
Associated revisions
Bugfix #2532 patch 4 corner detection sample possible bug solved.
Tutorial text was not consistent with tutorial source code in samples directory.
Inline source code was replaced on "includeliteral" directive with link to cpp file.
History
Updated by Andrey Kamaev over 12 years ago
- Target version set to 2.4.4
Updated by Kirill Kornyakov over 12 years ago
- Description changed from Hi, I am not an expert but when I tried running the sample provided at : http... to Hi, I am not an expert but when I tried running the sample provided at: http:... More
- Tracker changed from Patch to Bugfix
Updated by Vadim Pisarevsky about 12 years ago
the proposed fix seems to be correct
- Target version deleted (
2.4.4)
Updated by Vadim Pisarevsky about 12 years ago
- Assignee deleted (
Kirill Kornyakov)
Updated by Alexander Smorkalov about 12 years ago
- Affected version set to 2.4.3
- Assignee set to Alexander Smorkalov
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4