Ask Your Question

Revision history [back]

OpenCV findHomography transformation matrix to CATransform3D

I'm currently playing around with opencv on ios. I'm correctly calculating a homography matrix using findHomography between a captured videoframe and a known image. I've verified that this works by using this homography matrix to draw a border around the image onto the videoframe and it lines up perfectly with the image that I'm filming.

I would however like to use this homography matrix to draw using Core Animation, so I would need to build a CATransform3D from it and then apply it to a CALayer. This is where I get stuck, however, since very little documentation on this can be found and everything that I have found does not appear to work for me.

Thanks in advance,

Max