在安卓中将Mat 转为Bitmap代码如下:
Bitmap bmpCanny = Bitmap.createBitmap(cannyMat.cols(),cannyMat.rows(),Bitmap.Config.ARGB_8888);
org.opencv.android.Utils.matToBitmap(cannyMat,bmpCanny);
mImageView7.setImageBitmap(bmpCanny);
在安卓中将Mat 转为Bitmap代码如下:
Bitmap bmpCanny = Bitmap.createBitmap(cannyMat.cols(),cannyMat.rows(),Bitmap.Config.ARGB_8888);
org.opencv.android.Utils.matToBitmap(cannyMat,bmpCanny);
mImageView7.setImageBitmap(bmpCanny);