Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Point2F assign problem

$
0
0
hi there, as I know if I want to assign some number to the mat I would type Mat C = (Mat_(3,3) << 0, -1, 0, -1, 5, -1, 0, -1, 0); just like the document. but now i want to assign some number to the Point2f, when the codes are: Mat testMat =(Mat_(1,5) << (5,1),(4,2),(3,3),(2,4),(2,5)); cout returns : [1,0,2,0,3,0,4,0,5,0] when I typed Mat testMat =(Mat_(1,5) << 5,1,4,2,3,3,2,4,2,5); cout returns :[5,0,1,0,4,0,2,0,3,0] I don't like the 0 and i want to assign value to it and make the cout like [5,1,4,2,3,3,2,4,1,5] how do i assign value to y ?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



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