Hi all,

I'am working on Blackfin Image Processing Toolbox library (opencv like API). And I'am trying to obtain the perspective transformation matrix from 2 different quads... similar to 'cvGetPerspectiveTransform' method implemented in openCV1.0.

I couldn't find it implemented in the Image Processing Toolbox library, so could anyone please point me out on how I can implement it?

Many thanks in advance.

Mahdi.

Hello Mahdi,

As you have mentioned, the Image Processing Toolbox does not contain the implementation for getting the Perspective Transformation matrix. But few points that might help you get this matrix/vector,

1. As you may be aware that the process of getting this matrix involves solving a linear system based on the equation,

C = arg min ||A.X - B||

where X is the vector that transforms the quad A to quad B.

2. The Image Processing Toolbox contains modules to find matrix inverse using SVD. This can be used to solve the above equation and hence get the vector X.

Hope you will find this useful.

Regards,

Rajesh