Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to know the datatype of a input image?

I am reading an image from my computer and i want to know the datatype of that image. How can i do so?

The input image could be...CV_8UC1, CV_32FC1 or any other possibility.

Mat input = imread("sample.jpg", 1);