Shephard Distortion in IPhone

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dimplepanchal
Posts: 1
Joined: 2011-08-09T03:23:47-07:00
Authentication code: 8675308

Shephard Distortion in IPhone

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Shephard Distortion in IPhone

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply