Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an array using cvcreatemat,

C++
CvMat *mat = cvCreateMat(240,320,CV_8UC1 );
cvConvert( img, mat );. 

Here img is an image of size 320X240. Now how can i access the matrix elements?
Will mat[x,y] work??
Posted
Updated 26-Apr-12 18:04pm
v2

1 solution

You should have read their documentation or atleast googled.
Check out here

http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html[^]
 
Share this answer
 
Comments
VJ Reddy 26-Apr-12 23:40pm    
Good reference. 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900