필터 지우기
필터 지우기

Combining Stacked Images Size

조회 수: 1 (최근 30일)
Afzal
Afzal 2020년 2월 6일
댓글: Image Analyst 2020년 2월 6일
I am reading in two figures as
I1 = imread('figure1.jpg');
I2 = imread('figure2.jpg');
I am then stacking them as
I3 = [I1;I2];
Saving the image and reading it back in produces a much smaller figure. I would like it to be the same size (see attached image). Is there a better way of doing this stacking?
saveas(I3,'figure3.jpg')
I4 = imread('figure3.jpg');
f=figure;
imshow(I3)
hold on
imshow(I4)
saveas(f,'figure4.jpg')

채택된 답변

Eleanor Betton
Eleanor Betton 2020년 2월 6일
When I load you images figure 1 and 2 are coming in as .Jfif files.
If you use imwrite instead of saveas for when you save I3 then the file size is preserved.
imwrite(I3,'figure3.jpg')
  댓글 수: 1
Image Analyst
Image Analyst 2020년 2월 6일
I think you meant
imwrite(I4,'figure3.jpg');

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by