getPixel()对于此代码,我需要一种简单的替代方法。
和一些解释。我是图像处理的新手。
我不想使用 getpixel 和 setpixel。
颜色 tempPix ;
srcImage是我的图像元素。
x,y,filterx,filtery,s是变量。
int x, y, filterx, filtery;
int s = fmat.Size / 2;
int r, g, b;
Color tempPix;
tempPix = srcImage.GetPixel(x + filterx - s, y + filtery - s);
在这里,getPixel我不想使用其他东西,因为getPixel和setPixel有点慢。