public static void boofToBitmap ( ImageBase input , Bitmap output , byte [ ] storage ) { if ( BOverrideConvertAndroid . invokeBoofToBitmap ( ColorFormat . RGB , input , output , storage ) ) return ; if ( input instanceof Planar ) { planarToBitmap ( ( Planar ) input , output , storage ) ; } else if ( input instanceof ImageGray ) { grayToBitmap ( ( ImageGray ) input , output , storage ) ; } else if ( input instanceof ImageInterleaved ) { interleavedToBitmap ( ( ImageInterleaved ) input , output , storage ) ; } else { throw new IllegalArgumentException ( "Unsupported input image type" ) ; } }
Converts many BoofCV image types into a Bitmap .