how to manipulate imwrite caxis?

If you choose a colormap for imwrite, how does the colorscaling work? is there a way to try manipulate the caxis by choosing the number of steps in the colormap for example?

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 10 月 5 日

0 投票

The documentation indicates,
imwrite(X,map,filename,fmt) writes the indexed image in X and its associated colormap map to filename in the format specified by fmt.
The question of color scaling is thus irrelevant, as indexed images do not use color scaling.
I suspect you might want to take advantage of the File Exchange contribution "freezeColors" to convert the image into a truecolor image that you can get() the Cdata property of and imwrite() that array (with no map)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2012 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by