How to overlap a small picture onto the exact coordinates of a larger picture?

2 vues (au cours des 30 derniers jours)
Alexander Killam
Alexander Killam le 5 Mar 2014
Commenté : Image Analyst le 5 Mar 2014
I have a small picture who is 150x135 pixels called Crop1. I have a larger picture who is 2000x2600 pixels called aa1. They are both color images. How do I paste the smaller picture in the bigger picture with the top left corner of the smaller picture at (950,1100) of the bigger picture. Thanks for all your help. This has been a problem for me the past week.

Réponses (1)

Image Analyst
Image Analyst le 5 Mar 2014
See my image copy and paste demo, attached.
  3 commentaires
Alexander Killam
Alexander Killam le 5 Mar 2014
Better yet, how would I replicate this exact same program but using rgb images??
Image Analyst
Image Analyst le 5 Mar 2014
Alexander, look at the code:
x1 = round(xCoords(1));
x2 = round(xCoords(2));
y1 = round(yCoords(5));
y2 = round(yCoords(3));
Well, you can just replace those with whatever x1,x2,y1,y2 values you want. They don't have to be from the result of clicking. You can hard code them in if you want.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by