存储在不同类型图像中的像素类型不一样
byte, int16, int32 ,uint16, uint32, float, double
各种类型的值都有,但是算法是一样的
如果每种数据类型都写代码,那样会非常麻烦,代码也非常多比如:
public int addone(int a)
public float AddOne(float a)
public double AddOne(double a)
public byte AddOne(byte a)他们要进行的操作一样
{
   return a+1;//当然实际情况要复杂的多,不光是加1
}
能不能把这四个函数用一个函数代替?
请教请教!