List Info

Thread: Re: Compressing an image into a wedge




Re: Compressing an image into a wedge
user name
2007-01-17 20:18:20
"Cliff Pratt" on  wrote...
| Forgive this question if it is obvious to the Magick
gurus, but I'm
| just a beginner. I've scoured the docs as much as I can
and I cannot
| find a way of doing what I want.
| 
| I want to compress an image into a wedge. To be more
specific, suppose
| I have an image that is 200 x 400. I want compress the
image up so
| that the bottom edge becomes the diagonal from top left to
bottom
| right, and all pixels are moved up above the diagonal
proportionately.
| 
| How do I accomplish this? Does this explanation even make
sense? 
| 
It is called perspective transform and a DIY solution have
been detailed
in IM Examples, Distorting Images, Perspective Transform
(DIY)
   http://www.cit.gu.edu.au/~anthony/graph
ics/imagick6/distorts/#perspective

Plans are present to for a faster built-in version to be
added to IM.

  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
  Wiz : Our explanations are real. A virtual explanation
would be
        something that acted like an explanation, but
wasn't.
  Moira : I rest my case.                 -- Rick Cook,
"Wizardry Cursed"
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )