By claudiodepace
on Fri, 11/08/2013 - 18:05
I'm using the VideoPlayback sample and I would like to find the (X,Y) position of the target image recognised in screen coordinates. Basically what I need it's to understand which image is the closest to the center of the screen when multiple targets are recognised. I think it's something related the trackable pose matrix, but not sure how to proceed.
const QCAR::Matrix34F& trackablePose = trackableResult->getPose();
Find image target position (screen relative)
See these links for an explanation about the Pose Matrix
https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained
https://developer.vuforia.com/resources/dev-guide/positioning-3d-content
and this link shows how to get the position from it: