how to read images from dir and combine images with different size in one image
조회 수: 3 (최근 30일)
이전 댓글 표시
how to combine multi images in one image with different size and position beside each other in 3 3 matrix , just like a image in link :
댓글 수: 0
답변 (1개)
Image Analyst
2016년 11월 25일
See my demo to paste a rectangular image into a larger canvass.
댓글 수: 6
Image Analyst
2016년 12월 3일
First do this outside the loop
[rowsA, columnsA, numColorsA] = size(A)
Then, in the loop, instead of this:
B = imresize(B,0.5);
do this to resize B to be the same size as A
B = imresize(B, [rowsA, columnsA]); % No need to pass in numColorsA.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!