Ross Presser on wrote...
| On Mon, 11 Jul 2005 11:05:21 +0100, Ross Motley wrote:
|
| > Hello,
| >
| > I would like to know if it is possible to use
ImageMagick to take a
| > rectangular image and transform it into an arbitrary
quadrilateral....
| > I am trying to overlay some text onto an image that
has a strong
| > perspective to it.
| >
| > Thanks,
| >
| > Ross Motley
|
| It doesn't appear so. The question has come up before,
according to Google,
| but it doesn't seem to be possible.
|
While direct perspective transformation (EG: set four points
and
transform image to different set of four points) is not
directly posible
with IM, all the required transformation operations is
present!
All that is nessary to get these sort of transformations
working is
some code to create the appropriate transformations.
This is probably a good puzzle which if worked out can then
be added to
with the IM example pages, or directly as a new image
transformation
in the IM commands.
Anyone like to give it a go?
Basically two types of transformation is needed.
* four points to become the new image corners,
* or the photo corners to be transformed to the given four
points.
Anthony Thyssen ( System Programmer ) <A.Thyssen griffith.edu.au>
-----------------------------------------------------------
------------------
He decided the physicists were wrong. The universe was
held together
not by gravity, but by ifs. -- Alan Dean
Foster, "Quozl"
-----------------------------------------------------------
------------------
Anthony's Home is his Castle http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|