theEagles

I am sailing, to be with you, to be free.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

文章分类 -  图像处理

Image processing, computer Vision, Machine Learning, OpenCV
摘要:Matimread(const string&filename, intflags=1)Parameters filename– Name of file to be loaded.flags– 载入图像时对通道数的处理>0 强制以3通道图像载入 3-channels=0 强制以灰度图像载入 grayscale<0 按图像的原始颜色载入 as-is支持的图像类型Windows bitmaps - *.bmp, *.dib (always supported)JPEG files - *.jpeg, *.jpg, *.jpe(see Note2 )JPEG 2000 f... 阅读全文

posted @ 2012-08-23 00:06 theEagles 阅读(574) 评论(0) 推荐(0)

摘要:Mat -- the Basic Image ContainerMat 是OpenCV中最基本的数据结构,它包括头部和矩阵数据两个部分。 1 enum { MAGIC_VAL=0x42FF0000, AUTO_STEP=0, CONTINUOUS_FLAG=CV_MAT_CONT_FLAG, SUBMATRIX_FLAG=CV_SUBMAT_FLAG }; 2 3 /*! includes several bit-fields: 4 - the magic signature 5 - continuity flag 6 -... 阅读全文

posted @ 2012-08-23 00:05 theEagles 阅读(842) 评论(0) 推荐(0)