Filter löschen
Filter löschen

how can i paste a cropped head of one image into another?

1 Ansicht (letzte 30 Tage)
as825
as825 am 22 Okt. 2013
Beantwortet: as825 am 22 Okt. 2013
I have cropped the head of the cameraman.jpeg using circular crop and have embedded watermark in it. Now i need to place this embedded head into the original cameraman.jpeg. How can i do this?

Antworten (2)

David Sanchez
David Sanchez am 22 Okt. 2013
I = imread('cameraman.tif');
head = I( (35:85),(100:140) ); % crop of the head
% code to transform head here
I( (35:85),(100:140) ) = modified_head;

as825
as825 am 22 Okt. 2013
actually the above code is for a normal cropping and i need it for circular cropping. The description of the problem is stated above in the description part..

Community Treasure Hunt

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

Start Hunting!

Translated by