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?

enter image description here

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -