c++ - warpPerspective -
i tried inverse perspective frame captured in real-time camera plane using following code:
mat dst; dst=dst.zeros(frame.cols,frame.rows,frame.type()); if(found){ mat mmat; mmat.create(3,3,cv_32fc1); mmat=getperspectivetransform(templpoints,imgpoints); cout<< mmat<<endl<<endl; warpperspective(frame,dst,homo,dst.size(),inter_linear ); imshow("out",dst); } the problem dst image totally black , what's wrong code?

the image seeing result of sending source points getperspectivetransform in wrong order. means points crossing each other , triangular shapes appear. check order of points , make sure match order of destination points.
Comments
Post a Comment