VPI for template matching algorithm

hi sir ,

Is it possible to get minimum and maximum values after templating matching ? just like in opencv : res = cv.matchTemplate(image,template,cv.TM_CCORR)
min_val, max_val, min_loc, max_loc = cv.minMaxLoc(res)
As per VPI documentation : vpi.Image.minmaxloc() return locations , just wanted to know is there any ways to get minimum/maximum values?

@WayneWWW please help

Hi,

The MinMaxLoc(.) API only returns the locations.
So you will need to get the value with the returned key point manually.

https://docs.nvidia.com/vpi/group__VPI__MinMaxLoc.html#gaa8f7ff6c7ee658ed251bfd737a76cbd4

Thanks.

we want do those calculations within gpu only using VPI it will use CUDA right, please help on this

Hi,

VPI use GPU if CUDA backend is chosen.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.