Ask Your Question

android blur detection and noise detection

asked 2018-04-04 04:46:50 -0500

Hello, i am in studying of image quality assesment in ulos image. i want to build aplication android that can capture the image and after that it'll check the quality of image wheter the image is good, fair or bad, by detecting the blur and noise. I have found this helpfull article in detection blur in opencv, but it implemented in python

I want ask help if you have some guidelines and tutorial to implement this in android?

I also ask help if you have tutorial and implementation of detecting noise in open cv your answer and response is very meaningful to me, thank you.

edit retag flag offensive close merge delete


you could have looked all of this up from available documentation

berak gravatar imageberak ( 2018-04-04 05:19:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-04 05:18:57 -0500

berak gravatar image

you can calculate the variance of the laplacian in java with:

Mat gray = new Mat();
Imgproc.cvtColor(image, gray, Imgproc.COLOR_BGR2GRAY);

Mat lap = new Mat();
Imgproc.Laplacian(gray, lap, CvType.CV_64F);

MatOfDouble mean = new MatOfDouble ();
MatOfDouble dev = new MatOfDouble ();

Core.meanStdDev(lap, mean, dev);
double value = dev.get(0,0)[0];

(note, that you will get much smaller values, than in the python blog, since opencv returns the root of it

please also have an eye on the docs !

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-04-04 04:46:50 -0500

Seen: 1,522 times

Last updated: Apr 04 '18