Page 1 of 1

Precision for -verbose -distort?

Posted: 2014-05-28T02:34:00-07:00
by snibgo
Can the "-verbose" output of "-distort" respect "-precision", please?

In particular I want to use the output from:

Code: Select all

Perspective Projection:
  -distort PerspectiveProjection \
      '0.986612, -0.025803, -302.555209, 0.007779,
       0.988016, -388.255167, -0.000001, -0.000002'
Perspective Distort, FX Equivelent:
  -fx 'ii=i+page.x+0.5; jj=j+page.y+0.5;
       rr=+0.000001*ii +0.000002*jj + 1;
       xx=(+1.012397*ii +0.027217*jj +316.872932)/rr;
       yy=(-0.007611*ii +1.011634*jj +390.469383)/rr;
       rr>0 ? p{ xx-page.x-.5, yy-page.y-.5 } : blue' \
Two parameters in each direction are given to only one digit precision: "-0.000001" and "-0.000002".

The imprecision gives an error of a handful of coordinates in x- and y-direction in 5000x7500 images, which isn't a lot, but it fuzzes up images that I'd rather have correct.

(And maybe the spelling could be corrected to "equivalent".)

Thanks.

Re: Precision for -verbose -distort?

Posted: 2018-10-23T07:33:08-07:00
by snibgo
Bump.

This enhancement should be simple, and would be very useful.

Thanks.

Re: Precision for -verbose -distort?

Posted: 2018-10-23T10:27:16-07:00
by dlemstra
Could you open a Github issue instead? And could you also include a full command line example that we can use to reproduce the output?

Re: Precision for -verbose -distort?

Posted: 2018-10-23T11:50:18-07:00
by snibgo