Combining 6 images without discoloration
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I tried combining multiple smaller images with a Background.
In the resulting image the background is just fine, but the smaller images that are added in don't have the right color .
Startimage((Py-12):(Py+11), (Px-12):(Px+11)) = Ppic(1:24,1:24);
This line puts Pacman into the Picture according to his Posisition and animation state.
-----
The desired image looks kind of like this:
How does one go about solving this problem ?
Edit : All the files have now been attached. I am sorry.
Edit2 : Cut everything unrelated to my question out and reuploaded.
===
Thank you for your time and consideration .
Réponse acceptée
Image Analyst
le 21 Déc 2014
Your "gameimage" variable is a 3D RGB color image but you're not assigning any colors. You're treating it like it's a grayscale 2D image, which it's not. You'll have to assign all three color channels.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!