Jet function output error
1 回表示 (過去 30 日間)
古いコメントを表示
I got a script that is to create a flux map using two images; image of reflected rays and image of the sun. The inital lines make sense and produce an output but the total result is null (the is no flux map) after running it. I realized the
jet (ceil (max(fmap_img(:)))
did not produce anything. Any help?
4 件のコメント
回答 (1 件)
Image Analyst
2018 年 7 月 30 日
編集済み: Image Analyst
2018 年 7 月 30 日
You must pass Jet an integer that is the number of colors it is supposed to create.
Try this:
numberOfColors = ceil (max(fmap_img(:))) % No semicolon
cmap = jet(numberOfColors) % Create a color map.
colormap(cmap); % Apply the colormap to the indexed/gray scale image.
What do you see in the command window? Does the image look pseudocolored now?
You might also want to look into caxis().
6 件のコメント
Walter Roberson
2018 年 8 月 4 日
colormap(jet)
after the above code would produce that effect.
参考
カテゴリ
Help Center および File Exchange で Orange についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!