标签:
Mat imread( const string& filename, int flags=1 );
filename
载入的图像名;
flags
指定加载图像的颜色类型,默认载入三通道彩色图像,
enum{ CV_LOAD_IMAGE_UNCHANGED = -1, /* 8 bit, color or not */ CV_LOAD_IMAGE_GRAYSCALE = 0, /* 8 bit, gray */ CV_LOAD_IMAGE_COLOR = 1, /* ?, color */ CV_LOAD_IMAGE_ANYDEPTH = 2, /* any depth, ? */ CV_LOAD_IMAGE_ANYCOLOR = 4 /* ?, any color */ };
CV_LOAD_IMAGE_COLOR | CV_LOAD_IMAGE_ANYCOLOR /* equivalent to CV_LOAD_IMAGE_COLOR*/
图像储存顺序:BGR
标签:
原文地址:http://www.cnblogs.com/Xiaoyan-Li/p/5674788.html