您的位置:首页 > 运维架构

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

2016-12-17 14:19 495 查看
//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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息