How to display Color Image of type double

2 ビュー (過去 30 日間)
Tallha Akram
Tallha Akram 2012 年 6 月 13 日
Hi,
I have coloured image Im1 input as uint8. when i convert it to double, i am unable to display it.
let code is given as.
Im1=imread('flower.jpg');
Im1=im2double(Im1); % This will work with imshow(Im1); but range is 0-1.
but if i do it like this..... Im1=double(Im1); range is (0- 255) or multiply im2double(Im1) * 255.
Then i am unable to display it.. Please help me in display color image,as i am unable to do Color -K-mean segmentation due to this.
Regards
Akram

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 6 月 13 日
imshow(Im1, [0 255])

Tallha Akram
Tallha Akram 2012 年 6 月 14 日
Buddy i have tried already , its not working. you can confirm it.

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by