Ask Your Question

dinl's profile - activity

2020-04-22 03:19:38 -0600 received badge  Notable Question (source)
2018-09-11 02:30:06 -0600 received badge  Popular Question (source)
2015-01-28 01:17:07 -0600 asked a question How can I sort Mat with col order

I have a Mat element, that I want to sort with col oder, so for example I have:

Mat A ={[2 1], [0 2], [1 2], [0 1]}

So, If I use:

cv::sort(A, dst, CV_SORT_EVERY_COLUMN + CV_SORT_ASCENDING);

They will order each column independently, but the expected result is to order the second column first, then if a draw happens it will sort by the first column:

Actual:

{[0 1], [0 1], [1 2], [2 2]}

Expected:

{[0 1], [2 1], [0 2], [1 2]}
2014-09-03 23:17:28 -0600 asked a question 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