Wolfgang Hugemann on  wrote...
| No question this time, just praise for IM:
| 
| I have just tested the newly implemented perspective distorsion feature 
| and found it exactly what I need. I work in accident recontruction and 
| quite often I have to map automobile damage caught in a perspectively 
| distorted image onto a plan parallel taking of a car of the same make 
| and model.
| 
| This is very tedious work with all other programs I know in this 
| respect. But with IM's new perspective distortion tool this is very 
| rapid: just measure the co-ordintes of four points in the perspectively 
| imperfect photo and the co-ordinates of their match points in the plane 
| parallel taking and then IM do its job. Great!
| 
| We used to peform this task by the help of the "-fx" operator and a 
| VB-Script, but IM's calculation of the perspective correction used to 
| take quite a while with this older way of proceeding.
| 
| Greetings from Germany
| Wolfgang Hugemann
| 
| P.S.: I will soon provide Anthony with an convincing example.


Looking back, I found the above letter in my IM mail archives,
and I was suprised that I had not recieved the "convincing example".

Hint hint, nudge nudge :-)

I have been doing programing on the -distort function, trying to
add some new items.

If you have the latest IM I have a method called 'Shepards' added
which is a Inverted Distance Weighting Distortion.
Basically you can supply anything from two to many control point
movements and the image will be distorted like you were pullyg taffy!

For example.  Here I move two points way from each other
on the IM built in rose image, and a wider 'viewport' view.

  convert rose: -set option:distort:viewport 120x120-25-32 \
          -virtual-pixel black -distort Shepards \
               '20,22.5,0,22.5  50,22.5,70,22.5'
          rose_shepards.png

This is also the distort that Fred Weinhaus's "shapemorph" script
implemented to generate a linear spatical/color morph between two
images.

This weekend I hope to add code for triangular meshes for more free-form
user distortions, as well as cubic-radial distortions for camera lens
corrections.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
      What goes up must come down. Ask any system administrator.
 -----------------------------------------------------------------------------
     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