I am trying to implement Shephards distortion in iphone.
Following is my code:
const double ctrlPts[8] = {125,200 ,150,150, 255,150, 150, 150};
const size_t q = 8;
MagickDistortImage(magick_wand, ShepardsDistortion , q, ctrlPts, MagickFalse);
Following is my result
First One is original Image and second one is distorted image.

I just want to move one pixel to other location.
I am not able to figure out where I am making mistake.
I am trying to give Multi-Point and Freeform Distorts from this
link
Is it simply because you’re dragging the image into the center slightly and it doesn’t what to put in the gap?
Try setting the corners to be fixed :