MATLAB MATLAB Image Comparison Methods

  • Thread starter n1caboose
  • Start date
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.

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.


Want to reply to this thread?

"MATLAB Image Comparison Methods" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving