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

**URL:** <https://forum.opencv.org/t/getting-location-points-with-cv-findminmaxloc-function/662>\
**Category:** Uncategorized\
**Created:** [January 3, 2021, 5:56pm UTC](https://forum.opencv.org/t/getting-location-points-with-cv-findminmaxloc-function/662 "2021-01-03T17:56:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhaskar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/bhaskar/32/426_2.png) [@Bhaskar](https://forum.opencv.org/u/Bhaskar)\
**Post date:** [January 3, 2021, 5:56pm UTC](https://forum.opencv.org/t/getting-location-points-with-cv-findminmaxloc-function/662/1 "2021-01-03T17:56:57Z")

</div>

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()  
)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 4, 2021, 6:26am UTC](https://forum.opencv.org/t/getting-location-points-with-cv-findminmaxloc-function/662/2 "2021-01-04T06:26:48Z")

</div>

related

> <https://stackoverflow.com/questions/65553265/accessing-the-location-points-using-cvcudafindminmaxloc-function>
