Skip to content

Instantly share code, notes, and snippets.

@udaya1223
Last active Sep 7, 2015
Embed
What would you like to do?
How to check OpenCV Mat data type ?
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