Hello All,

I have a question about merging image.

I am working on a project where I have to merge two image. Below is my
problem.

1. Image 1 is an image of a mug (which has curved surface for 3D look)
2. flat image which I need to impose on the mug image.

Attached are few images

m1.jpg - mug image
m2.jpg - image I want to impose on the mug
m3.jpg - final output should look like the attached image

I have been working on this for quite a while and have tried wave operator
but am not successful. Below are few specifications

1. Mug diameter is about 156 pixel. Circumference about 490 pixel. Front of
mug (visible in attached image) is about 156 pixel diameter (height of mug
is about 160 pixel) and about 245 pixel if you flatten the mug image.
2. Image width (m2.jpg) is about 385 pixels.

I tried using -wave 15x770, which gave me a curved image of m2.jpg. The I
tried cropping the image to extract 245 pixel (about 122.5 on either side of
center line).  Resizing the image to 156x160 (so that it can fit into the
center of the mug does not give me good result, since it aspect ratio of the
image is lost and the look of the final image is not the same as m3.jpg.

Any ideas or help on above problem will be helpful.

Thanks
Riya.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to