How can I mosaic two images
Afficher commentaires plus anciens
I want to mosaic two imges using MATLAP script
would do you help me how I will Image Stitching?
Please, help me by providing its codes
Réponses (3)
Image Analyst
le 15 Juin 2020
Try imtile() or montage() or imshowpair().
Or try this:
tallImage = [image1;image2]; % Must have same number of columns and color channels.
wideImage = [image1, image2]; % Must have same number of rows and color channels.
- Read both the images using imread.
- Check the sizes of both the images.
- Convert the images two same size if they are not in same size using imresize.
- Join both the images using cat.
I1 = imread(image1) ; %m,n size
I2 = imread(image2) ; % m,n size
% Merge next to each
I12 = cat(2,I1,I2) ;
imshow(I12)
% Merge one above the other
I12 = cat(1,I1,I2) ;
imshow(I12)
7 commentaires
Mekonen Merga Iticha
le 15 Juin 2020
KSSV
le 15 Juin 2020
I have already specified that both the images should be of same dimension. Use imresize to get them to the same dimensions.
Mekonen Merga Iticha
le 15 Juin 2020
KSSV
le 15 Juin 2020
I1 = imread(image1) ;
I2 = imread(image2) ;
[m1,n1,p1] = size(I1) ;
[m2,n2,p2] = size(I2) ;
m = max(m1,m2) ;
n = max(n1,n2) ;
I1 = imresize(I1,[m,n]) ;
I2 = imresize(I2,[m,n]) ;
I12 = cat(1,I1,I2) ;
imshow(I12)
Mekonen Merga Iticha
le 15 Juin 2020
KSSV
le 15 Juin 2020
What do you mean by mosiac?? Show example.
Mekonen Merga Iticha
le 15 Juin 2020
Mekonen Merga Iticha
le 15 Juin 2020
0 votes
5 commentaires
KSSV
le 15 Juin 2020
Try montage function.
Mekonen Merga Iticha
le 15 Juin 2020
Mekonen Merga Iticha
le 15 Juin 2020
Mekonen Merga Iticha
le 15 Juin 2020
Mekonen Merga Iticha
le 15 Juin 2020
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!