Precision for -verbose -distort?

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Precision for -verbose -distort?

Post 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.
snibgo's IM pages: im.snibgo.com
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Precision for -verbose -distort?

Post by snibgo »

Bump.

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

Thanks.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Precision for -verbose -distort?

Post 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?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Precision for -verbose -distort?

Post by snibgo »

snibgo's IM pages: im.snibgo.com
Post Reply