Getting location points with "cv::cuda::findMinMaxLoc" function

I am trying to use “findMinMaxLoc” function with streams (to speed up). I can retrive the minimum & maximum values successfully. But, I am unable to get the location points for the min and max. I will appreciate any help to retrieve the location points!

Function I am using:

void cv::cuda::findMinMaxLoc
(
InputArray src,
OutputArray minMaxVals,
OutputArray loc,
InputArray mask = noArray(),
Stream & stream = Stream::Null()
)

related