Emgu Matrix[Double] matrix = new Matrix[Double](height, width)的简单应用

来源:互联网 发布:淘宝发货无需物流 编辑:程序博客网 时间:2024/06/06 08:45
//Matrix<Double> matrix = new Matrix<Double>(height, width);    private void button1_Click(object sender, EventArgs e)    {        //创建一个矩阵        Matrix<Double> matrix1 = new Matrix<Double>(5, 7);        double element = 0;        //设置矩阵元素值        for (int i = 0; i < 5; i++)        {            for (int j = 0; j < 7; j++)            {                matrix1.Data[i, j] = element;                element++;            }        }        //显示        matrixBox1.Matrix = matrix1;    }
0 0
原创粉丝点击