i am developing an android application it has a requirement of decoding gray scale images which contains qr codes. i have been trying to integrate zxing with android . for rgb color scale images it's working fine.
for rgb image byte array i have used this code to build the binarybitmap.
RGBLuminanceSource source = new RGBLuminanceSource(width, height, data);
BinaryBitmap Binary_bitmap = new BinaryBitmap(new HybridBinarizer(source));
but for gray scale image i don't know how to build the binarybitmap.