how to read images from dir and combine images with different size in one image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 :
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
0 comentarios
Respuestas (1)
Image Analyst
el 25 de Nov. de 2016
See my demo to paste a rectangular image into a larger canvass.
6 comentarios
Image Analyst
el 3 de Dic. de 2016
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.
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!