question: public static void bitmapToMat ( Bitmap bmp , Mat mat , boolean unPremultiplyAlpha ) { if ( bmp == null ) throw new java . lang . IllegalArgumentException ( "bmp == null" ) ; if ( mat == null ) throw new java . lang . IllegalArgumentException ( "mat == null" ) ; nBitmapToMat2 ( bmp , mat . nativeObj , unPremultiplyAlpha ) ; }
target:  Converts Android Bitmap to OpenCV Mat. <p> This function converts an Android Bitmap image to the OpenCV Mat. <br>'ARGB_8888' and 'RGB_565' input Bitmap formats are supported. <br>The output Mat is always created of the same size as the input Bitmap and of the 'CV_8UC4' type, it keeps the image in RGBA format. <br>This function throws an exception if the conversion fails.