colormap

12 ビュー (過去 30 日間)
S
S 2011 年 5 月 31 日
Hi all,
I am using colormap command and intereseted to know what is the maximum and minimum value I can define for the size. for example in Help it says
colormap(hsv(128)): creates an hsv colormap with 128 colors
How far can I increase this value? I know 256 is ok, I even tried 1000 but I just want to know if it is logic to increase it to what ever I want. Appreciate your help S:)

採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2011 年 5 月 31 日
Try - and you'll see.
  3 件のコメント
Bjorn Gustavsson
Bjorn Gustavsson 2011 年 5 月 31 日
I honeslty have no idea. Just try and experiment and you'll see. At some point the display settings will limit the number of colours you can show on the screen, the printer will only give you just so many levels and so on, then comes the question of how many levels you and your audience can separate with your eyes. I just tried jet with some random sizes between 10 and 1e6, and on my screen I could not see much difference between jet(300) and jet(1000), with the image I was using. This might of course vary between combinations of colourmaps, displays, images and eyes. So your measure might be different than mine - thus the recommendation "Try - and you'll see".
S
S 2011 年 5 月 31 日
Thank you very much indeed. yes you are right after a certain stage you see no difference in the image. Once again, thank you!:)

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 5 月 31 日
The minimum size you can use is 1, and the maximum size you can use is the largest array you can construct in your software (or perhaps a bit less than that due to the memory required by the routine that computes the appropriate color entries.)
  1 件のコメント
S
S 2011 年 5 月 31 日
Thank you Walter.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWhite についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by