Stack around variable corrupted when using cvBlobsLib (OpenCV)

Posted by jpromvi on Stack Overflow See other posts from Stack Overflow or by jpromvi
Published on 2010-05-05T09:55:02Z Indexed on 2010/05/06 9:28 UTC
Read the original article Hit count: 163

Filed under:

I am trying to do simple image processing with OpenCV and the cvBlobsLib in Visual C++ 2008, and I get an error message when I try to create a CBlobResult object

IplImage* original = cvLoadImage("pic6.png",0);
cvThreshold(original, original, 100, 255, CV_THRESH_BINARY);
CBlobResult blobs = CBlobResult(original, NULL, 255);

The message is the following:

Run-Time Check Failure #2 - Stack around the variable blobs was corrupted

Why does this happen? How should I create this object? Thank you very much for your help.

© Stack Overflow or respective owner

Related posts about opencv