PS: Sorry for my bad english.
Ask HN: How can I determine the quality of an image file
1–8 of 8 posts
Re: Ask HN: How can I determine the quality of an image file
#2Re: Ask HN: How can I determine the quality of an image file
#3Those are just heuristics, you'd have to try it to see how well they work.
Re: Ask HN: How can I determine the quality of an image file
#4Downsample it and then up sample and see how different (e.g. mean squared error over the pixels) it is? (Or equivalently (assuming anti-aliasing in the sampling version), apply a low pass filter and compare. Those are just heuristics, you'd have to try it to see how well they work.
Re: Ask HN: How can I determine the quality of an image file
#5This is hard to answer in general, although general aspects like contrast and resolution are important of course. Maybe you can provide some background regarding your know how and technology you're going to use.
I struggle when determine the threshold, some blur image have higher score than high quality image, but other blur image has lower score than high quality image.
So I wonder where i'm wrong or have some better approaches to resolve this.
Re: Ask HN: How can I determine the quality of an image file
#6Downsample it and then up sample and see how different (e.g. mean squared error over the pixels) it is? (Or equivalently (assuming anti-aliasing in the sampling version), apply a low pass filter and compare. Those are just heuristics, you'd have to try it to see how well they work.
thank you, I tried with downsample and up sample it with opencv using INTER_AREA then compare them with SSMI, but it still not work well. Could you tell me what low pass filter you applied?
Alternatively (though roughly equivalent) you could try some kind of edge detection (and then summing the output) - especially if you're talking about blurred text, I'd expect there to be fewer hard edges in a blurry image
Re: Ask HN: How can I determine the quality of an image file
#7that'd have resolution and bit ratio which I forget how to figure out honestly, not hard to learn in minutes though
Re: Ask HN: How can I determine the quality of an image file
#8Earlier quoted context omitted.
thank you, I tried with downsample and up sample it with opencv using INTER_AREA then compare them with SSMI, but it still not work well. Could you tell me what low pass filter you applied?
Use the pixel MSE, not SSMI - I'm not really familiar with it, but it appears to be more about structure or perception. This is not what you care about, you want to see how much fine detail gets lost. You'll have to play around with it, I would just try to Gaussian blur with different radii to see what works. Alternatively (though roughly equivalent) you could try some kind of edge detection (and then summing the out…