Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Gray-level image of JPEG i've added to workspace

1 回表示 (過去 30 日間)
bigdog
bigdog 2015 年 2 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I'm having trouble turning the colored image JPEG I've added to my workspace. I have been using the following code: image(tw2); colormap(gray); But this doesn't work and there are no errors. Any ideas?

回答 (1 件)

Image Analyst
Image Analyst 2015 年 2 月 4 日
What does "turning" mean to you? Applying a color map? Rotating? Flipping? Transforming in some other way? Color maps don't apply to color images , only to gray scale or indexed images. Did you know that? A color image is already color so there are no indexes that you can use to replace the color with a color selected from an N by 3 colormap array.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by