JavaPhash icon indicating copy to clipboard operation
JavaPhash copied to clipboard

info about CImgae constuctor

Open matesp65 opened this issue 4 years ago • 0 comments

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++;

matesp65 avatar Oct 24 '19 08:10 matesp65