add small image to large image in center without losing image quality
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
varinder kaur
le 12 Mai 2018
Commenté : Ameer Hamza
le 12 Mai 2018
i have a image containing some data. I want to add it into bigger image which contains zero. KINDLY HELP
0 commentaires
Réponse acceptée
Ameer Hamza
le 12 Mai 2018
You can use indexing to place a smaller image inside a large image. For example if imageBig is 200x200x3 and imageSmall is 50x50x3 then use
imageBig(70:70+size(imageSmall,1)-1, 80:80+size(imageSmall,2)-1, :) = imageSmall;
this will place imageSmall over imageBig starting from (70, 80) pixels from topl ledt corner.
8 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!