visual_utility/src/cvutils.cc
void WriteNormalizedImage(const string filename, const Mat& image) {
  Mat outImage;
  normalize(image, outImage, 0, 255, NORM_MINMAX,
            CV_MAKETYPE(CV_8U, image.channels()));
  imwrite(filename, outImage);
}
// Writes an image to a file but first normalizes it to the 0-255 range
Writes an image to a file but first normalizes it to the 0-255 range
Writes an image to a file but first normalizes it to the 0 - 255 range
void WriteNormalizedImage(const string filename, const Mat& image) {
  Mat outImage;
  normalize(image, outImage, 0, 255, NORM_MINMAX,
            CV_MAKETYPE(CV_8U, image.channels()));
  imwrite(filename, outImage);
}
void WriteNormalizedImage ( const string filename , const Mat & image ) { Mat outImage ; normalize ( image , outImage , 0 , 255 , NORM_MINMAX , CV_MAKETYPE ( CV_8U , image . channels ( ) ) ) ; imwrite ( filename , outImage ) ; }
Writes an image to a file but first normalizes it to the 0-255 range
Writes an image to a file but first normalizes it to the 0 - 255 range