How can i add one image into another
Show older comments
I have to do a program which the user select by mouse a music note, after this, the user will clic into a empty music partiture to add the selection note to the partiture. At the end, the user will save the finish image.
I don`t know how can i add the note image into the empty partiture image in a specific position.
Thank you very much in advance.
Answers (1)
Walter Roberson
on 25 Mar 2013
new_image = original_image;
new_image( newrow : newrow + size(noteimage,1) - 1, newcol : newcol + size(noteimage,2) - 1, :) = noteimage;
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!