title: Getting enum names (e.g. CV_32FC1) of OpenCV image types?
body: <p>In the C++ interface to OpenCV, it seems easy enough to check the type of an image. If you have an image <code>cv::Mat img = cv::imread("someImage.xyz")</code>, you just do <code>int theType = img.type()</code>. </p>
  
  <p>However, as you would expect, calling <code>img.type()</code> just gives an integer, an not an enum name (e.g. <code>CV_32FC1</code>).</p>
  
  <p>Is there an easy way to print out the enum name (e.g. <code>CV_32FC1</code>) if I know the integer value of the OpenCV enum? </p>