Image Composition using specific coords
Posted: 2011-07-13T09:19:35-07:00
Good Afternoon,
Using php I'm in the process of switching our POVScript based rendering engine to ImageMagick and while progress has been made I'm hitting one road block hopefully someone can shed some light on. Given two images A and B I'm trying to compose B on A given specific coords for the bounding box. So conceptually image B will fill a rectangle with corner coords which I then want to place at specific points on image A. This will have the effect of skewing the image as necessary as well. I've been playing with distortImage and while it "worked" with DISTORTION_BILINEAR I get a strong drop in quality and odd artifacts. Curious if there is a better method to do this?
Thanks for the help.
Using php I'm in the process of switching our POVScript based rendering engine to ImageMagick and while progress has been made I'm hitting one road block hopefully someone can shed some light on. Given two images A and B I'm trying to compose B on A given specific coords for the bounding box. So conceptually image B will fill a rectangle with corner coords which I then want to place at specific points on image A. This will have the effect of skewing the image as necessary as well. I've been playing with distortImage and while it "worked" with DISTORTION_BILINEAR I get a strong drop in quality and odd artifacts. Curious if there is a better method to do this?
Thanks for the help.