Mat imread( ); filename 载入的图像名: flags 指定加载图像的颜色类型,默认载入三通道彩色图像, 如果取枚举类型 (OpenCV3中暂时失效),则定义如下 enum{ CV_LOAD_IMAGE_UNCHANGED = -, /* 8 bit, color or not */ CV_LOAD_IMAGE_GRAYSCALE = , /* 8 bit, gray */ CV_LOAD_IMAGE_COLOR = , /* ?, color */ CV_LOAD_IMAG