Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Blur Level #264

Closed
habeascorpse opened this issue Oct 2, 2018 · 1 comment
Closed

Help with Blur Level #264

habeascorpse opened this issue Oct 2, 2018 · 1 comment
Labels

Comments

@habeascorpse
Copy link

habeascorpse commented Oct 2, 2018

Hello,
i'm tryng to code a example to detect the blur level on an image, like this:
https://stackoverflow.com/questions/36413394/opencv-variation-of-the-laplacian-java

``
Mat destination = new Mat();
Mat matGray=new Mat();

Imgproc.cvtColor(image, matGray, Imgproc.COLOR_BGR2GRAY);
Imgproc.Laplacian(matGray, destination, 3);
MatOfDouble median = new MatOfDouble();
MatOfDouble std= new MatOfDouble();
Core.meanStdDev(destination, median , std);

Math.pow(std.get(0,0)[0],2);
``

but d'ont exist the Class "MatOfDouble"

anyone can help me?

@saudet saudet added the question label Oct 3, 2018
@saudet
Copy link
Member

saudet commented Oct 3, 2018

It's available here:
http://bytedeco.org/javacpp-presets/opencv/apidocs/org/opencv/core/MatOfDouble.html
You'll need to make sure to call Loader.load(opencv_java.class) though:
https://github.com/bytedeco/javacpp-presets/tree/master/opencv#documentation

@saudet saudet closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants