I am working on a project in which I have to compare two b&w images based on their luminosity. I wanted to create a program that compares the pixels of each image using MATLAB and I wanted some advice on how I could do this.
Asked
Active
Viewed 188 times
0
-
1If these images have three colour channels (RGB image but appears black and white) you can use the [rgb2lab()](https://www.mathworks.com/help/images/ref/rgb2lab.html) function. Then take the first channel which will correspond to the luminance. – MichaelTr7 May 31 '21 at 02:01
-
Some methods of comparing can include logical comparisons or histograms. – MichaelTr7 May 31 '21 at 02:04
-
Could you share links to two representative images so that we understand this better? I can think of several metrics - Sum of Square Differences (SSD), Sum of Absolute Differences (SAD) and so on. – akamath Jun 02 '21 at 21:48