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

asked Oct 16 '15

Brandon212 gravatar image

updated Oct 16 '15

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.

Preview: (hide)

Comments

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

LorenaGdL gravatar imageLorenaGdL (Oct 16 '15)edit

Any luck with this?

LorenaGdL gravatar imageLorenaGdL (Oct 22 '15)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 (Oct 22 '15)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 (Oct 22 '15)edit