JavaPhash
JavaPhash copied to clipboard
info about CImgae constuctor
Hi could you please explain why do you have used that bold number in the formula below? why we need to use them? tks
int j = 0; for (int i = 0; i < bufferSize; i += numComponents) { float y0 = ### ((tempData[i + 2] & 0xFF) * 25 + (tempData[i + 1] & 0xFF) * 129 + (tempData[i] & 0xFF) * 66);
int y = Math.round(y0 / 256.0f) + 16; if (y > 255) y = 255; if (y > maxPixel) { maxPixel = y; } this.data[j] = (byte) y; j++;