I need to convert each location of bytes arrays to double ,it can not run with Bitconverter:
Code
byte[,] R = new byte[width, height];Code
byte[,] G = new byte[width, height];Code
byte[,] B = new byte[width, height];Code
double[,] Y1 = new double[width, height];Code
for (int x = 0; x width; x++)Code
for (int y = 0; y height; y++)Code
{Code
double ee = BitConverter.ToDouble(R[x, y], x, y);Code
double ee1 = BitConverter.ToDouble(G[x, y], x, y);Code
double ee2 = BitConverter.ToDouble(B[x, y], x, y);Code
Y1[x, y] = (0.39 * ee) + (0.59 * ee1) + (0.12 * ee2);Code
}Code
Is there method for convert each location of byte array to double??
VulpesRank #55 · 29.2K reputationPosted Jan 7, 2014, 9:07 AM EST