I am doing an Image Processing algorithm using BoofCV in Android Client. For this, I did a demo on the server side using BufferedImage.
For that, my code was:
int numBands = bufferedImage.getRaster().getNumBands()
Now, I need to get the number of bands from a Bitmap Image.
Can anyone tell me how I can do this?
Thanks in advance!!
As far as I understand, there is no concept directly equal to "bands" in Android
Bitmaps.You can look at the
Bitmap.Configto get some idea of the pixel layout and how colors are stored. I believeARGB_8888is the most common one.