Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SimpleBlobDetector bug?

I am using SimpleBlobDetector from OpenCV 2.45 (32-bit) with VS 2010 under windows 7.

When I compile and run my code in VS's debug configuration everything works fine.

When I compile and run my code in VS's release configuration the call to detect crashes with the following error: image description

Here is the relevant code:

cv::SimpleBlobDetector::Params params;
params.thresholdStep = 60;
params.minThreshold = 60;
params.maxThreshold = 255;
params.minDistBetweenBlobs = 4.5;

params.filterByColor = true;
params.blobColor = 255;

params.filterByArea = true;
params.minArea = 4;
params.maxArea = 100;

params.filterByCircularity = false;

params.filterByInertia = false;

params.filterByConvexity=false;

blobDetector = new cv::SimpleBlobDetector(params);

and then

   cv::Mat myImage
   ... some image processing here ...
   std::vector<cv::KeyPoint> keypoints;
   blobDetector->detect(myImage, keypoints);

and boom. The call to detect crashes (only .

Any ideas or suggestions (beyond always compiling with debug)?

Thanks in advance!

SimpleBlobDetector bug?

I am using SimpleBlobDetector from OpenCV 2.45 (32-bit) with VS 2010 under windows 7.

When I compile and run my code in VS's debug configuration everything works fine.

When I compile and run my code in VS's release configuration the call to detect crashes with the following error: error:

image description

Here is the relevant code:

cv::SimpleBlobDetector::Params params;
params.thresholdStep = 60;
params.minThreshold = 60;
params.maxThreshold = 255;
params.minDistBetweenBlobs = 4.5;

params.filterByColor = true;
params.blobColor = 255;

params.filterByArea = true;
params.minArea = 4;
params.maxArea = 100;

params.filterByCircularity = false;

params.filterByInertia = false;

params.filterByConvexity=false;

blobDetector = new cv::SimpleBlobDetector(params);

and then

   cv::Mat myImage
   ... some image processing here ...
   std::vector<cv::KeyPoint> keypoints;
   blobDetector->detect(myImage, keypoints);

and boom. The call to detect crashes (only .

Any ideas or suggestions (beyond always compiling with debug)?

Thanks in advance!