Why the image color bar doesn't contain certain color (Red, in particular)?

A
Annalise · Sep 30, 2020 · 2.3K views
Question
I used the following code in order to explore RGB images X = imread ('parrot.jpg'); image(X); colorbar The output Why doesn't the color bar contain red color even when the image does?
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 10, 2026

If you want to see the 3-D color gamut, you can use colorcloud

colorcloud(rgbImage);
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!