Set colorbar ticks after use of hsv2rgb

1 回表示 (過去 30 日間)
Cortexlab
Cortexlab 2014 年 6 月 6 日
Hi there,
I would like to change the ticks of a colorbar that has been previously converted from an hsv to a rgb image with the function hsv2rgb.
I have an image imHsv whose hue imHsv(:,:,1) ranges between 0 and 1 (more precisely between 0.1 and 0.9 because I want to exclude the red color)
then I converted it to an rgb image: imRgb=hsv2rgb(imHsv);
and plot it with figure; imagesc(imRgb)
now I would like to set the colorbar such that the 8 values (0.1 : 0.8/7. : 0.9) of the previous imHsv(:,:,1) corresponds to the eight values (-70:10:0) that should go on the colorbar ticks. What should I do?
Many thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by