warpperspective with iplimage

asked 2012-10-08 13:55:13 -0500

andrea gravatar image

hi!

there are a method for usig warpperspective with the iplimage?

i try : warpPerspective(img_frame,crop,Homo.inv(DECOMP_LU),cvGetSize(img_temp));

where img_frame and crop are Iplimage* but i give me an error

error: invalid initialization of reference of type 'const cv::_InputArray&' from expression of type 'IplImage*' /opt/local/include/opencv2/imgproc/imgproc.hpp:540: error: in passing argument 1 of 'void cv::warpPerspective(const cv::_InputArray&, const cv::_OutputArray&, const cv::_InputArray&, cv::Size, int, int, const cv::Scalar&)'

edit retag flag offensive close merge delete

Comments

Could you post the code leading to this exception? Maybe the crop IplImage is not allocated?

elmiguelao gravatar imageelmiguelao ( 2012-10-09 03:14:33 -0500 )edit