lkdemo crashes (Bug #3418)
Description
Hi,
when I add a first point by clicking the mouse in lkdemo.exe, the application crashes during cornerSubPix. I isolated a small piece of code from lkdemo.cpp demonstrating the behaviour and reproducing that crash:
int main( int argc, char** argv )
{
TermCriteria termcrit(TermCriteria::COUNT|TermCriteria::EPS,20,0.03);
Mat image( 512, 512, CV_8UC3 );
Point2f point = Point2f(100,100);
vector<Point2f> corners;
corners.push_back(point);
cornerSubPix( image, corners, Size(5,5), Size(-1,-1), termcrit );
}
I found that corners vector is converted to a bad Mat containing 9 (!) points which will cause the error.
I compiled OpenCV using CMake and VisualStudio 2010 using default settings.
Frank
Associated revisions
Merge pull request #3418 from tstellarAMD:2.4-hog-crash-fix
History
Updated by Daniil Osokin over 11 years ago
Did you test master branch?
- Category set to samples
- Assignee set to Frank Bauernöppel
- Target version set to 3.0-alpha
Updated by Daniil Osokin about 11 years ago
Frank, I cancel this ticket, since there is not enough information to reproduce this bug. You are free to reopen it in anytime.
- Status changed from New to Cancelled
Updated by Frank Bauernöppel about 11 years ago
Okay, the bug is gone. Tested it with a recent master revision (1c3bfae - 31.12.2013)
Frank