Code: Select all
convert fc.png -verbose -distort DePolar "820 780, 893 269, 90, 180" show:
DePolar Distort, Internal Coefficents
c0 = +820.000000
c1 = +780.000000
c2 = +893.000000
c3 = +269.000000
c4 = +1.570796
c5 = +3.141593
c6 = +0.002485
c7 = +0.085470
DePolar Distort, FX Equivelent:
-fx 'aa=(i+.5)*0.002485 -1.570796;
rr=(j+.5)*0.085470 +780.000000;
xx=rr*sin(aa) +893.000000;
yy=rr*cos(aa) +269.000000;
v.p{xx-.5,yy-.5}' \
So the part of the image expected by computing the angles is not properly mapped. Changing the sign in the first expression to
Code: Select all
aa=(i+.5)*0.002485 +1.570796;
This fix can be applied to magick/distort.c at lines 2186 and 2581