emgu 图像列获取

来源:互联网 发布:有马贵将 知乎 编辑:程序博客网 时间:2024/06/06 15:53

public Form1()
        {
           
            InitializeComponent();

            Image<Gray, byte> src = new Image<Gray, byte>("b.png");  //读取图片并进行灰度化处理
            Image<Gray, byte> submat = new Image<Gray, byte>(src.Width, 1); 
            CvInvoke.cvGetCol(src, submat, 30);//获取图像的某一列  
            imageBox2.Image = submat ;

        }

0 0