public static void grayToBitmap( GrayU8 input , Bitmap output , byte[] storage) {
		if( output.getWidth() != input.getWidth() || output.getHeight() != input.getHeight() ) {
			throw new IllegalArgumentException("Image shapes are not the same");
		}
		
		if( storage == null )
			storage = declareStorage(output,null);
		
		ImplConvertBitmap.grayToArray(input, storage,output.getConfig());
		output.copyPixelsFromBuffer(ByteBuffer.wrap(storage));
	}
public static void grayToBitmap ( GrayU8 input , Bitmap output , byte [ ] storage ) { if ( output . getWidth ( ) != input . getWidth ( ) || output . getHeight ( ) != input . getHeight ( ) ) { throw new IllegalArgumentException ( "Image shapes are not the same" ) ; } if ( storage == null ) storage = declareStorage ( output , null ) ; ImplConvertBitmap . grayToArray ( input , storage , output . getConfig ( ) ) ; output . copyPixelsFromBuffer ( ByteBuffer . wrap ( storage ) ) ; }
Converts ImageGray into Bitmap.

@see #declareStorage(android.graphics.Bitmap, byte[])

@param input Input gray scale image.
@param output Output Bitmap image.
@param storage Byte array used for internal storage. If null it will be declared internally.