Wolfgang Hugemann on wrote... | > Don't fret. Cristy is just putting together a general distortion | > function, when that is done we should be able to insert perspective, | > bilinear, and a whole swag of other common distortion functions into IM | > very quickly. | | This sounds very interesting. I haven't been following the IM threads | for quite a while now, so I have just detected this one. | | At the end of last year we set up a VB-Skript (sorry, only Windows) | calculating the transformation parameters and handing them over to the | IM -fx function. We succeded in rectifying faccades (as shown in | Anthony's examples) and mapping a pespectively distorted photograph of | vehicle damage to a planar photograph of a vehicle of same make and model. | | This works fine, but it is very slow due to the use of the -fx operator | and the need for divisions. I was almost about to look at the IM source | code myself to see what can be done. | | Thus it is most intersteing to hear that someone else is already taking | this effort. With the affine transformation already built in, this | should not be too difficult. Any timeline for the build-in of this feature? | It is in the beta testing release. The next point release should have it.
It is also in IM examples http://www.imagemagick.org/Usage/distorts/#distort However at the moment image coordinate arguments for perspective and bilinear (the only two distorts added as yet), are reversed (destination set then source set) due to that usage when doing it yourself (DIY) as in previous use IM examples. (Yes DIY handling will return, but needs a re organisaton). Also the interface within IM core is not completely settled, so it may be a little longer before it appears in API's. Cristy, with input form me is trying to develop a more generalised approach to image distortion mapping, so the future developments and additions can make use of super-sampling methods, and adaptive smapling. Also posible is changing destination image to fit specific distortions. Whcih may eventually mean the current affine distortion could be replaces internally with calls to this function. I have a long list of other distortions which will also make it in. including affine (by triangle coordinate mapping) and affine (by parts (eg: scale, rotate, translate around a specified point). Swirl, pincusion, barrell, hourglass, angled waves, spherical, various curved distortions etc. Basically if a distortion can be described in terms of input arguments, and some type of reversed mathematical mapping, then it can be very quickly added to this function. Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- "If is was so, it might be, and if it were so, it would be. But as it isn't, it ain't. That's logic." -- Lewis Carroll ----------------------------------------------------------------------------- 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
