Eliminate Filter / iwarp

I am trying to create something like a Liquify filter in Photoshop. I read the image distortion code, but I'm afraid to know what will create similar effects. The closest link I could find was the iWarp filter in Gimp, but the code for this is not commented at all.

I also looked at places like ImageMagick, but they have nothing in this area.

Any pointers or description of the algorithms are welcome.

+5
source share
3 answers

Sorry if I make this sound a little simplified, I'm not sure how much you know about gfx programming or even the methods you use (I would do it with HLSL myself).

, , - , x/y r/g. :
Texture inputImage


color (x, y) = inputImage (x + distortionMap (x, y).R, y + distortionMap (x, y).G)
( , , , , , 0,5, )

, , ( - , , , - ).

0

, , .
, .
, , .
2D- .

0

Javascript. , (x, y) (r, α), Math.sqrt r.

0

All Articles