04 2012 档案
摘要:typedef struct _IplImage{ int nSize; /* sizeof(IplImage) */ int ID; /* version (=0)*/ int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 chann...
阅读全文
摘要:彩色图像灰度化一般有四种方式: 1、分量法 将彩色图像中的三分量的亮度作为三个灰度图像的灰度值 f1(i,j)=R(i,j),f2(i,j)=G(i,j),f3(i,j)=B(i,j) 2、最大值法 f(i,j)=max(R(i,j),G(i,j),B(i,j)) 3、平均值法 f(i,j)=(R(i,j),G(i,j),B(i,j))/3 4、加权平均法 根据人眼敏感度对RGB...
阅读全文
摘要:private Bitmap srcBitmap = null; private Bitmap showBitmap = null;读入图像 private void button1_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = n...
阅读全文
摘要:Bitmap类 Bitmap是用来处理由像素数据定义的图像的对象。 其继承层次结构:System.Object->System.MarshalByRefObject->System.Drawing.Image->System.Drawing.Bitmap 命名空间:System.Drawing 程序集:System.Drawing(在System.Drawing.dll中) 该类主要属性...
阅读全文