-1

Is there a tool that can help you do such thing? Can photoshop do it? Matlab can, but I don't want to use it.

  • 2
    Why do you think the frequency spectrum reflects the quality of the image? The amplitude histogram is often used as an indication of a well-exposed image, but that's a completely different thing. – Philip Kendall Mar 28 '16 at 20:30
  • 1
    See also / possible duplicate: What parameters can I use to evaluate a “Perceptual Image Quality”? – Philip Kendall Mar 28 '16 at 20:32
  • 1
    The frequency spectrum could be used as a measure of sharpness. This isn't generally a measure of quality as a perfectly sharp (all over) image is only desirable is certain situations. However for very similar images it may be a valid comparison (e.g. if you're at the limits of what you can hold steady and hold the trigger down). – Chris H Mar 28 '16 at 20:49
  • 2
    What exactly does Matlab do that you want to replicate? – mattdm Mar 28 '16 at 21:15
  • 1
    Thanks for everyone's comment. I didn't know how to ask this question correctly. Now I know. By quality I just meant sharpness. And Chris helped explain the reason. Thanks! : ) – Ethan Mar 29 '16 at 14:01
1

it will show the frequency spectrum? of the picture which tells you its quality.

Sounds like you're thinking of the histogram, which shows the distribution of pixels according to either their brightness or their red, green, and blue values. It's not a measure of quality beyond the fact that it can help you evaluate exposure. But you can easily take a photo that has a nicely distributed range of values, but is completely out of focus, or badly composed, or just ugly.

Is there a tool that can help you do such thing?

If you just want the histogram, there are lots of tools that'll do that. Most photo management tools (Lightroom, Aperture, Photos, etc.) include a histogram feature.

One really easy way to get a histogram is to install the ImageMagick tools and use the convert command, like:

convert somefilename.jpg histogram:histogramFileName.gif

And then you get something like this:

histogram

Like everything related to ImageMagick, there are lots of options to customize the output and get exactly what you want. For example, you can get the pixel counts for every unique color in the image. Or you can separate the image into red, blue, and green components and generate separate brightness histograms for each.

1

Your question is very confussing. But I have used a method of analizing an histogram but for comparing different compression loss.

Use google translate please: http://otake.com.mx/Apuntes/PruebasDeCompresion/1-CompresionJpgProceso.htm

The basic idea is that you overlap the exact image with different compression settings on the original image using a diference overlay mode.

After that, you amplify the resulting image and compare the histograms.

0

A really lazy heuristic, assuming that the images have been taken with the same process and similar framing and are available as JPEG, is to take the image with the larger file size. Basically this means that the lossy JPEG compression algorithm was of the opinion that more human-discernible details required preserving which usually means more in-focus details. Of course, whether those details are the ones of your actually interesting subject is another question, but teaching "interesting subject" to an algorithm would likely be hopeless anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.