Comparison between two images
Mostrar comentarios más antiguos
I have an image that includes artifacts that i have removed through different processes.
I want to show that the final image is better in quality than the original with a quantitative way (not just visually).
I know there are some metrics that are used to show that two images might be different, for example cross correlation
but such calculation will only show that the two images are different. The goal is to show that the new image is smoother (i.e. better) than the previous one.
Is anyone familiar with such metric?
Respuestas (2)
Walter Roberson
el 8 de Dic. de 2018
0 votos
- replace entire image with a constant value
- measure variation in constant image and see that it is 0 everywhere
- an image with no variation is perfectly smooth
- new (constant ) image is smoother (i.e. better) than the original
- no other non-constant image could possibly be smoother (i.e. better)
- conclude that the constant image is the best possible version of the original image .
2 comentarios
Angela
el 8 de Dic. de 2018
Walter Roberson
el 8 de Dic. de 2018
Editada: Walter Roberson
el 9 de Dic. de 2018
Assign 0 to all pixel components leaving an all black image . The all black image will be perfectly smooth . You have defined smoother as better , therefore the all black image is the best possible version of your original image .
It does not matter that there is structure in the original image . Removing the structure leaves a smoother image and you have defined smoother as better .
Imagine that you have an image that is all white on the left and all black on the right . It has a sharp transition from white to black. Now take another image which is all white on the left third and all black on the right third and fades from white to black across the middle third . It does not have any sharp transition so it is smoother than the first image . Therefore an algorithm that blurs edges priduces smoother images and by your definition those are better images . Therefore aa processing algorithm that blurs the image completely into a single value produces aa smooth image which is by your definition the best image .
We can then optimise the algorithm to simply replacing the entire image with 0 and we would be confident that the smoothness could not be surpassed .
Image Analyst
el 8 de Dic. de 2018
0 votos
8 comentarios
Angela
el 8 de Dic. de 2018
Image Analyst
el 8 de Dic. de 2018
How can you say that your processed image is better than the original reference image if you don't even HAVE the original reference image from which to make a measurement of???
Angela
el 9 de Dic. de 2018
Image Analyst
el 9 de Dic. de 2018
But you have the reference image so why not use it to gauge the improvement your processing did?
Anyway there are ways to get metrics like the histogram that don't require reference images directly. But if you were to compare something like the standard deviation of image gray levels, then you just get a number. But to know if that number is any good, you have to see what the numbers are for other images, right? Including the reference image. So although the reference image is not used in the computation of the number for that test image, you still had to compute it for the other (ref) image to know if your number is any good or not.
Walter Roberson
el 10 de Dic. de 2018
Editada: Walter Roberson
el 10 de Dic. de 2018
I believe the situation is that Angela has a noisy image without having access to a non-noisy original, and wants to process the image to remove noise, and then wants to quantitatively measure how "good" the cleaned up image is.
So the task is to remove "bad" content but keep "good" content, and to somehow measure how well you do at that task.
In general, this is not something that can be done without prior knowledge of what the image is "supposed to" look like. For example if I provide a raw astronomical image, what looks at first like noise might in fact be signal, even if not the signal that was originally intended to be recorded -- it might, for example, give information about the Microwave Background Radiation, or might provide information about a large intergalactic dust cloud whose existence was not realized for decades after the image was taken, or might (somehow) provide evidence of what Dark Matter is (again, perhaps decades after the image was taken.)
A few days ago someone posted a image with what looked like a lot of salt and pepper noise, and which obviously had two cats. Cleaning up that image would involve removing irrelevant blobs. But it looked to me as if at the bottom front of the image there might be two pet mice -- difficult to tell with all of the image noise. Metrics that assume that the mice are not there would favour removing that blob from the image; Metrics that assume that the mice are there would favour keeping them. But if you do not know whether they are really there or if it is an artifact, then which of the two metrics would be proper to use?
Image Analyst
el 10 de Dic. de 2018
Yes, in fact the paper says, in the conclusion:
"Some recommendations emerge. First, a universal image
quality metric seems beyond the range of current knowledge,
and possibly unavailable because of the various (and
weakly correlated) components of the human visual behavior.
Although specific applications of image quality assessment
may select a visionmodel as being more relevant, itmay help
to check if, for instance, an image processing tuned with respect
to this vision model (e.g., visual performance) leads,
or not, to drawbacks for alternative quality indexes (visual
appearance and visual attention)."
Angela
el 10 de Dic. de 2018
Walter Roberson
el 10 de Dic. de 2018
It is from the middle of the three references Image Analyst posted, http://perso.lcpc.fr/hautiere.nicolas/pdf/2010/hautiere-jei10.pdf
Categorías
Más información sobre Image Quality en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!