Last active
September 7, 2015 04:51
-
-
Save udaya1223/caed880a9f2c7735dd7e to your computer and use it in GitHub Desktop.
How to check OpenCV Mat data type ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mat test = Mat::zeros(nHeight, nWidth, CV_32FC4); | |
if(test.type() == CV_32FC4){ | |
printf("Correct data type\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment