How do I interpret the information in the location output matrix from cuda::findMinMaxLoc?

asked 2015-10-16 14:59:38 -0500

Brandon212 gravatar image

updated 2015-10-16 15:06:35 -0500

This may be a stupid question, but when I run cuda::findMinMaxLoc it produces a 1x2 32FC1 Mat for "location". Apparently this somehow contains information about the locations of the min and the max, but I have no clue how 2 digits are giving me coordinates for two points.

Any help is appreciated.

edit retag flag offensive close merge delete


Is there any difference between cuda::findMinMaxLoc and cuda::minMaxLoc? Maybe you can try with the last one

LorenaGdL gravatar imageLorenaGdL ( 2015-10-16 16:39:37 -0500 )edit

Any luck with this?

LorenaGdL gravatar imageLorenaGdL ( 2015-10-22 06:25:54 -0500 )edit

Yeah the normal minMaxLoc works fine, but I was kinda just interested in figuring out what I was missing about findMinMaxLoc, because unless I'm completely missing something, it seems completely broken. Returning a 1x2 Mat makes no sense and the documentation doesn't explain any expected behavior either.

Brandon212 gravatar imageBrandon212 ( 2015-10-22 13:41:03 -0500 )edit

I'll take a look later at source code to see if I can figure out anything. I truly still don't know the difference between both functions.

LorenaGdL gravatar imageLorenaGdL ( 2015-10-22 13:50:44 -0500 )edit