June 13th, 2013, 06:43 AM
Rows, cols and channels
I have a question.
Does this code give to me the numbers of rows,cols and channels of an image I read with imread function?
int rows= img.rows;
int cols= img.cols;
Does the image I use must be in the same path of the project to be read?
June 13th, 2013, 01:21 PM
Your question is meaningless without some more context.
Googling "imread" throws up half a dozen different API's, and nobody is going to check through all of them to see which best fits your problem.
June 13th, 2013, 01:24 PM
openCV is the library. My fault