image and imwrite colormap problem
2 ビュー (過去 30 日間)
古いコメントを表示
Hello! I need to generate an image from matrix (like fluid jet) and save it as a picture. At the moment I use
mesh(dlmread(my_data.txt))
Then I choose X-Y projection and save it as a picture. It's is very cumbersome but colormap is applied correctly, 'Color data min' and 'Color data max' are set to appropriate min and max values of my data array.
But if I use image(dlmread(my_data.txt)) imwrite - colormap is set to default [0 1] (even though in colormap editor correct min max values displayed). How do I re-scale colormap for range of values in my data? Thank you in advance!
2 件のコメント
Image Analyst
2012 年 11 月 6 日
Can you give a short script demonstrating what you have so we can reproduce it?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!