How to make a similarity analysis of several colormap plots

2 views (last 30 days)
I have one colormap plot having red, blue and white colors in it. This is my reference figure. Besides, I have several output figures having the same scale and dimensions. I would like to make a comparison of the outputs with the reference figure and give scores to each output to measure the prediction capacities of them. I will ignore the white colored areas in the reference. For the blue and red colored areas, if the output has the same color at the same location with the reference, it will be a plus to the score. If it does not predict the color at the exact location there will be no penalty. I want total scores of each output to make comparison. Can anyone help me to apply this?
  9 Comments
Adam Danz
Adam Danz on 4 Feb 2021
If you can get the handle to the figure (try gca) then you can probably get the handle to the objects plotted on the figure. Using the object handle, you can get the zData which is probably defining the colors.

Sign in to comment.

Answers (1)

yanqi liu
yanqi liu on 3 Feb 2021
use color hist to compute
or
you can use sim hash functions
  5 Comments
Burhan Yildiz
Burhan Yildiz on 5 Feb 2021
Thank you for the answer. I could not understand two things. What is that rectangle for and how did you obtain the coordinates for it? And, what should I understand from the histogram output?
yanqi liu
yanqi liu on 7 Feb 2021
may be use color hist to make feature vector,and use the rect image to match

Sign in to comment.

Products


Release

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!