0
내 비트 맵 이미지 오픈 이력서 라이브러리를 사용하여 adaptiveThreshold을 적용 할,하지만 난 코드를 다음과 같이 수행하면, 그것은 빈 (전체 흰색) 이미지를 보여줍니다 빈 (흰색 가득), 내가 그것을 해결하기 위해 도와주세요지고. 초기화 후adaptiveThreshold 이미지
Mat grayMat = imread(getImageUri(this, photo).getPath(), IMREAD_GRAYSCALE);
Mat resultMat = new Mat();
Imgproc.adaptiveThreshold(grayMat, resultMat, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, 40);
Bitmap imgBitmap = Bitmap.createBitmap(resultMat.cols(), resultMat.rows(), Bitmap.Config.ARGB_8888);
어떻게'resultMat'을'imgBitmap'에 할당 했습니까? 비트 맵의 크기와 유형을 인스턴스화하는 것처럼 보입니다. –
릭 M,이 방금 imgBitmap을 만들었습니다. 비트 맵 위에 ImageView, pls 도움을 어떻게 전달할 수 있습니까? – Appstute
@RickM Utils.matToBitmap (resultMat, imgBitmap); 나는 이것을 사용했지만 같은 결과를 보였다. – Appstute