Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

getAffineTransform returns a (float or double) Mat.

so your initial assignment gets overwritten / ignored. (a integer Mat does not make much sense anyway for a transformation)

and yes, trying to acccess a float Mat with at<int> will make a mess of it.

again, your assumption that it was int is wrong in the 1st place.