I
I
imholynx2014-03-13 19:50:42
Algorithms
imholynx, 2014-03-13 19:50:42

How to programmatically determine the quality of a photo?

Are there methods to programmatically determine which of the two photos is better in quality? The same photo is scanned on two different scanners in different places and under different conditions. You need to add the best scan to the database.
Example from the Internet: quality-comparison.jpg
The left photo should be added.
Thank you!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ilya Popov, 2014-03-13
@encyclopedist

To assess sharpness, you can use the histogram of gradients, as in this topic habrahabr.ru/post/175717

A
Andrew, 2014-03-14
@OLS

You can try to analyze the amplitude of the "medium" frequencies in any two-dimensional harmonic transformation (Fourier, Haar and other wavelets). Where the amplitude is higher - there is more information capacity.
It is better not to consider the upper frequencies - otherwise the photo noisy with small noise will give high performance.

A
afiskon, 2014-03-15
@afiskon

You can come up with your own metric, for example, how different are the colors of pixels in different squares. Or train a neural network. In any case, you will need a large test set (at least 1000 pairs of photos) to test the algorithms.

A
Alexey Timofeev, 2014-03-24
@phtimofeeff

when there is something to compare with, then in principle you can still decide, but when there is only one photo, let's say only (B), then you will not determine what quality it is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question