Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SimpleBlobDetector for 16 bits depht

I'm trying to use the SimpleBlobDetector whit a 16U image, the code is the same as tutorial:

// set up and create the detector using the parameters
cv::Ptr<cv::FeatureDetector> blob_detector = new cv::SimpleBlobDetector(params);
blob_detector->create("SimpleBlob");

// detect!
vector<cv::KeyPoint> keypoints;
blob_detector->detect(img_8, keypoints);

But, when the input is a 16U depth image, it fails with this error:

OpenCV Error: Unsupported format or combination of formats () in cv::threshold, file ........\opencv\modules\imgproc\src\thresh.cpp, line 783