I'd like to know how to compare two greyscale images with each other using MATLAB. These two images for simplicity sake will both be circles and of different intensities. I need to be able to figure out by what proportion one image's intensity is of the other.(adsbygoogle = window.adsbygoogle || []).push({});

For instance with 8-bit greyscale images, the intensity range is from 0-256. I would need to be able to first calculate the average intensities of each image. This is the real part of the problem. If one image's intensity is 125 and the other is 180, how would I be able to get these numbers through MATLAB? Once I have them it is a simple calculation of 125/180 to find the proportion I'm looking for, but how do I even get to this step?

On a related note, I would also like to know how to have a greyscale image return a greyscale histogram instead of a color one...

For any of you curious as to why I would need to have this image comparison - it has to do with Beer's Law in chemistry for calculating concentrations of a solution by measuring absorbance of a solution using optical equipment.

Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Image Comparison Methods

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**