Ask Your Question
-1

android blur detection and noise detection

asked 2018-04-04 04:46:50 -0600

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

https://www.pyimagesearch.com/2015/09...

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

Comments

you could have looked all of this up from available documentation

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

1 answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

1 follower

Stats

Asked: 2018-04-04 04:46:50 -0600

Seen: 2,552 times

Last updated: Apr 04 '18