Combining 6 images without discoloration
1 view (last 30 days)
Show older comments
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 .
Accepted Answer
Image Analyst
on 21 Dec 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.
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!