Skip to content

Instantly share code, notes, and snippets.

@udaya1223
Last active September 7, 2015 04:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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