Created
June 1, 2015 05:03
-
-
Save yaronv/5175db904f507fba326c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void analyzeImage(Bitmap bitmap, ImageView viewImage) { | |
Mat mat = Mat.zeros(viewImage.getHeight(), viewImage.getWidth(), CvType.CV_8UC3); | |
Utils.bitmapToMat(bitmap, mat); | |
Imgproc.cvtColor(mat, mat, Imgproc.COLOR_BGR2GRAY); | |
Utils.matToBitmap(mat, bitmap); | |
viewImage.setImageBitmap(bitmap); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment