How can i plot a color bar for an RGB image ?
12 Ansichten (letzte 30 Tage)
Walter Roberson am 25 Jun. 2018
RGB images do not have colorbars. colorbar relates a linear (or log) value to the color the value is mapped to, but RGB images express color directly; there is no linear (or log) value being mapped to a color.
We could create a bar chart relating each RGB color to the number of times that color occurs, but your image has over 150000 RGB colors so you would need like 100 displays end to end even if the bars were only one pixel wide.