How to substitute call to imshow() with image()
조회 수: 7 (최근 30일)
이전 댓글 표시
hello,
I'm new to matlab. I do not own the Image Processing Toolbox required to use imshow().
I want to run some code that includes this line:
imshow([im1 im2]);
Where im1 and im2 come from a call to imread() and are manipulated in the code. I tried this:
image([im1 im2]);
But it doesn't work. It displays im2 twice instead of 1 and 2 next to each other.
I tried to switch the arguments around:
image([im2 im1]);
And it works fine, the problem is: that's not what I want. I want to see im1 on the left and im2 on the right.
What's the problem here? Thanks for your help
댓글 수: 0
답변 (2개)
Wayne King
2013년 6월 30일
I don't have any trouble with this:
X = randi(256,256,'uint8');
Y = imread('cameraman.tif');
image([X Y]); axis off;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!