Quantcast
Channel: JACKSLACK 의 블로그
Viewing all articles
Browse latest Browse all 148

OpenCV 매트릭스 좌표변환 cvPerspectiveTransform

$
0
0
IplImage *pCopied = cvCloneImage( pImgGray );IplImage *pCopiedDst = cvCloneImage( pImgGray ); CvPoint2D32f srcPts[4], dstPts[4];CvMat *map_matrix = cvCreateMat( 3, 3, CV_32FC1 ); srcPts[0] = cvPoint2D32f( 100, 100 ); // left topsrcPts[1] = cvPoint2D32f( 100, 400 ); // left bottomsrcPts[2] = cvPoint2D32f( 350, 400 ); // right bottomsrcPts[3] = cvPoint2D32f( 350, 100 ); // right top dstPts[0] = cvPoint2D32f( 50, 140 ); // left topdstPts[1] = cvPoint2D32f( 50, 700 ); // left bottomdstPts[2] = cvPoint2D32f( 150, 700 ); // right bottomdstPts[3] = cvPoint2D32f( 150, 140 ); // right top //변.......

Viewing all articles
Browse latest Browse all 148

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>