我正在阅读Gonzalez和Woods的DIP第2版,并尝试使用wxImage用拉普拉斯掩码(第129和130页)弄脏我的手。floatkernel[3][3]={{1,1,1},{1,-8,1},{1,1,1}};这是处理循环:unsignedcharr,g,b;floatrtotal,gtotal,btotal;rtotal=gtotal=btotal=0.0;//ignoretheborderpixelfor(inti=1;iGetRed(i+y,j+x);g=Image->GetGreen(i+y,j+x);b=Image->GetBlue(i+y,j+x);//calcula