matchman1988
Lurker
I have converted color bitmap into grayscale bitmap using ColorMatrix.
After that, I would like to get the pixel value of the grayscale bitmap for performing histogram equalization.
It is expected 0-8 (8-bit grayscale), however, i get something like -13027271.
My code:
int[] pixels = new int[grayscaleBitmap.getWidth()*grayscaleBitmap.getHeight()];
grayscaleBitmap.getPixels(pixels, 0, grayscaleBitmap.getWidth(), 0, 0, grayscaleBitmap.getWidth(), grayscaleBitmap.getHeight());
I am a beginner in android and also in this forum. Somebody please help me.
After that, I would like to get the pixel value of the grayscale bitmap for performing histogram equalization.
It is expected 0-8 (8-bit grayscale), however, i get something like -13027271.
My code:
int[] pixels = new int[grayscaleBitmap.getWidth()*grayscaleBitmap.getHeight()];
grayscaleBitmap.getPixels(pixels, 0, grayscaleBitmap.getWidth(), 0, 0, grayscaleBitmap.getWidth(), grayscaleBitmap.getHeight());
I am a beginner in android and also in this forum. Somebody please help me.