How to generate a colour scale in HSV space?

2 views (last 30 days)
Ellyn
Ellyn on 4 May 2015
Answered: Image Analyst on 4 May 2015
I need to differentiate my image data into two standards by using the colour scale (can be differentiated according to the range i set). I have image data in RGB and i already converted them to HSV. I managed to find the minimum and maximum values of HSV of each image. Now how do i generate a colour scale in HSV space for the images?
  2 Comments
Image Analyst
Image Analyst on 4 May 2015
What does that mean? Do you mean how do you display a color bar (with the colorbar command)?
Ellyn
Ellyn on 4 May 2015
yes but i need to display it on gui. Can you help?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 4 May 2015
myColorMap = hsv(256);
colormap(myColorMap);
colorbar;

Community Treasure Hunt

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

Start Hunting!