필터 지우기
필터 지우기

how show color image ?

조회 수: 2 (최근 30일)
Aseel H
Aseel H 2012년 7월 8일
I use figure, imshow(colorimage); it do not show and give White window
what is this problem

답변 (2개)

Walter Roberson
Walter Roberson 2012년 7월 8일
편집: Walter Roberson 2012년 7월 8일
Try
imshow(colorimage, [])
And tell us what you get for
class(colorimage)
size(colorimage)
min(colorimage(:))
max(colorimage(:))
  댓글 수: 4
Aseel H
Aseel H 2012년 7월 8일
size(colorimage)
Walter Roberson
Walter Roberson 2012년 7월 8일
You gave those four commands, and the response was just the literal words
size(colorimage)
??

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2012년 7월 8일
I suggest you do what Walter asked. If you refuse (which would be strange - why deny us the ability to help you?), then try this and see what happens
imshow(uint8(colorimage));
and if that doesn't work try this:
imshow(uint8(255 * colorimage));
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 7월 8일
I would normally expect the [] range specifier of imshow() to work usefully in the two cases the above would help with.
Image Analyst
Image Analyst 2012년 7월 8일
Yeah, so would I, though it doesn't. It does scale min to 0 and max to 255 with gray scale double images, but not with color double images. I'm not sure why it doesn't work with color the same way as grayscale. I'm sure they could if they wanted to program it up that way. I'll put it on my wish list and talk to them about it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by