UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer anjali@8
Observer
606 Views
Registered: ‎05-04-2018

warp transforms

Hi,

I wanted to accelerate the warp affine function in my code. Earlier I was using openCV's warpAffine function. But when I used the xfopencv's warp affine function it is not taking the transformation matrix. My transformation matrix is a Mat datatype but the input to xf::warpaffine is a float. How can I change my transformation matrix to float?

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
592 Views
Registered: ‎05-25-2018

Re: warp transforms

The values of Mat type transformation matrix can be accessed using its data pointer. You can copy those values and fill into a float array.

0 Kudos
Observer anjali@8
Observer
583 Views
Registered: ‎05-04-2018

Re: warp transforms

@gouthamb

Hi,

Did you mean like this:

float *transform = warp_matrix.ptr<float>();

0 Kudos