Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Rows,cols,channels

Hi people,

I have a question.

Code:

  int rows= img.rows;
  int cols= img.cols;
  int channels=img.channels();

Does this code give to me the numbers of rows,cols and channels of an image I read with imread function? Does the image I use must be in the same path of the project to be read?

Rows,cols,channels

Hi people,

I have a question.

Code:

  int rows= img.rows;
  int cols= img.cols;
  int channels=img.channels();

Does this code give to me the numbers of rows,cols and channels of an image I read with imread function? Does the image I use must be in the same path of the project to be read?