Wolfgang Hugemann on  wrote...
| > It is in the beta testing release. The next point release should have
| > it.
| 
| How could I possibly have a look at the way this functionality is going 
| to be implemented? Is there a documentation yet?
| 
The code is all in the source module "magick/distort.c"
and the command line link is in "wand/mogrify.c" (search for "distort")
(Download a copy of the Subversion Repository).

A big thank you to Cristy for implementing my 'generalised' function
suggestion, to allow easier future expandsion.

IM examples should be up by this point.
  http://www.imagemagick.org/Usage/distorts/#distort
Though the input coordinate sets were still reversed when the examples
were generated.  This should be fixed today.

| If I had to program it, I would try to implement a generic -distortion 
| functionality, handing it the desired distortion as one of the 
| parameters; something like:
| 
|  >convert -distortion perspective 0.3 0.5 0.4 -0.2 0.7
| 
that is exactly how it is implemented so as to avoid option bloat, which
IM has currently having problems with.

Syntax for both perspective and the bilinear perspective is..

  convert image_in.png  \
          -distort perspective 'x1,y1, ..., x4,y4, u1,v1, ...  u4,v4'\
          image_out.png

Note only ONE commandline argument is given, which IM mogrify.c parses
into a list of floating point values (16 for perspective), before
passing the array to the distortion function in "distort.c"

All arguments are floating point and can even be negative.
However at this time no checks are done for  co-linear points,
which would probably cause a division by zero error for 'perspective'
and a unknown result for 'bilinear'.

As I said before the internals are still in development and not fully
settled.

| The number of the parameters would of course to depend on the kind of 
| distortion specified.
| 
| Is something like this planned?
| 
YEAP!

More distortions will appear as things settle.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  Sendmail configuration files...
       Experimental results of an explosion in a Punctuation Factory!!!
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to