Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@udaya1223
Last active September 7, 2015 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udaya1223/caed880a9f2c7735dd7e to your computer and use it in GitHub Desktop.
Save udaya1223/caed880a9f2c7735dd7e to your computer and use it in GitHub Desktop.
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