Page 1 of 1

Shephard Distortion in IPhone

Posted: 2011-08-09T04:14:57-07:00
by dimplepanchal
Hello,
This is my code,

Code: Select all

const double ctrlPts[8] = {125,200 ,150,150, 255,150, 150, 150};
const size_t q = 8;
MagickDistortImage(magick_wand, ShepardsDistortion , q, ctrlPts, MagickFalse);
I want to move selected point on the image, but this code is moving entire image. Can anyone help me..
Please reply fast.

Re: Shephard Distortion in IPhone

Posted: 2011-08-10T00:07:05-07:00
by anthony
Shepards will move the either image by the average of all the moves given.

That is just what it does.

See the first few examples in IM examples, Shepards Distortion.
Yes this is command line, but the principles and problems looked at are the same for all API's
http://www.imagemagick.org/Usage/distorts/#shepards

To combat this add a lot of 'fixed' points that don't move, or perhaps move slightly in the oppisite direction.