First time here? Check out the FAQ!
answered 2013-02-27 01:45:27 -0600
Mat img = imread("my.jpeg"); cout << img.rows << " " << img.cols << " " << img.channels() << " " << img.type() << endl;
so, img.channels() holds the depth, img.type() the type of one channel(uchar, int, float, etc)