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);
}

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 ) ; }
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 .
