Xilinx / xfopencv

Other
328 stars 143 forks source link

Warp transformation #11

Closed anjaliagarwal8 closed 6 years ago

anjaliagarwal8 commented 6 years ago

Hi, I wanted to use warp transformation functions of xfOpenCV: warpaffine and warpperspective. But in the header files, there are two options for it. In the warptransform, there is a option to do these transformations and also there are separate warpaffine and warpperspective functions in the include folder. What is the difference between them?

bgouthamb commented 6 years ago

@Anjali-iit8 Warpaffine and Warpperspective are memory mapped implementations, whereas Warptransform is a streaming implementation. Functionally both are similar. For pipeline applications, Warptransform is more suitable.

anjaliagarwal8 commented 6 years ago

@bgouthamb Can I also perform inverse warpAffine and inverse warpPerspective using warptransform because I cannot see any parameter for specifying it, like in OpenCV we give the flag WARP_INVERSE_MAP

bgouthamb commented 6 years ago

@Anjali-iit8 Yes, you can. There is no flag to set, you yourself need to generate and provide the inversed transformation matrix instead.

anjaliagarwal8 commented 6 years ago

Okay. Thankyou

bgouthamb commented 6 years ago

@Anjali-iit8 Please close the issue if you think your question is answered.