Why my subplot imshow not equally.

1 view (last 30 days)
Suttipong Pramuansin
Suttipong Pramuansin on 15 Dec 2018
Commented: Image Analyst on 15 Dec 2018
Hi, I have a problem. My subplot imshow not equally even though image size is equally.
k = 1;
for i=1:2:col_size
m = 1;
for r=1:rml
n = 1;
for c=col(i):col(i+1)
letter(m,n) = ime(r,c);
n = n + 1;
end
m = m + 1;
end
if size(letter,2) >= 6 && size(letter,1) <= 90
subplot(1,(col_size/2),k);
imshow(letter);
k = k + 1;
end
clear letter;
end
1.PNG
2.PNG

Answers (1)

Image Analyst
Image Analyst on 15 Dec 2018
Because your two images are not the same size.
  2 Comments
Image Analyst
Image Analyst on 15 Dec 2018
Post your image(s) and code so I can reproduce it.

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!