Difference between focus and out of focus images.
19 views (last 30 days)
Show older comments
Hello everyone.
I have a stack of images and I am trying to find which of those are in focus and which of those are out of focus?
How can I do this?
thanks
0 Comments
Accepted Answer
Image Analyst
on 26 Nov 2014
Or you can take the FFT and sum up the higher frequencies.
Or you can call stdfilt() or imgradient() and take the mean of the output image, the thought being that the in focus image will have more edges and thus the mean will be higher.
0 Comments
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!