点阵图

用三维点阵图观察马氏距离

纵然是瞬间 提交于 2020-02-22 12:28:59
//==================== 读入图片部分 ============================= Bitmap image = new Bitmap(“3obj.png”);// “Line.png” tree.png “x2.jpg” “hous.png” 白色的背景,黑区面积不要太多 int width = image.Width; int height = image.Height; //==================== 非托管[指针操作]部分 ============================= double[][] xy0 = getMs(image, width, height, 320, 240, 320, 240); double[][] xy1 = getMs(image, width, height, 150, 355, 100, 100); double[][] xy2 = getMs(image, width, height, 487, 336, 100, 100); double[][] xy3 = getMs(image, width, height, 418, 112, 100, 100); //==================== 矩阵准备部分 ============================= /