首页 > 网上找到一种用来做数字图像处理的语言,请问这是什么语言

网上找到一种用来做数字图像处理的语言,请问这是什么语言

byte [,] GetLapEdge(byte [,]f)
{

int w = f.GetLength(0); 
int h = f.GetLength(1); 

byte [,] g = new byte[w,h]; 

for (int y=1;y<h-1;y++)

    for (int x=1;x <w-1;x++)

   { 
    g[x,y] = 0; 

    if (f[x,y]>=128 && (f[x-1,y]-128)*(f[x+1,y]-128)<0) g[x,y] = 255; 
    if (f[x,y]>=128 && (f[x,y-1]-128)*(f[x,y+1]-128)<0) g[x,y] = 255; 
    if (f[x,y]>=128 && (f[x+1,y+1]-128)*(f[x-1,y-1]-128)<0) g[x,y] = 255; 
    if (f[x,y]>=128 && (f[x+1,y-1]-128)*(f[x-1,y+1]-128)<0) g[x,y] = 255; 
    } 

return g; 

}


这上哪猜去?这种写法的语言有好几种

【热门文章】
【热门文章】