Page 1 of 1

Read coefficients for -function from a file

Posted: 2018-02-13T13:27:07-07:00
by PaulAThompson
I am trying to read coefficients for a -function Polynomial call from a file. Here is a successful command:

convert C:\Users\Paul\Pictures\2017-12\17096648.JPG ^
-function Polynomial 10.8002128780857,-23.8077779274411,16.0669025317382,-2.05933748238276,0 ^
C:\Users\Paul\Pictures\2017-12\17096648b.JPG

I have those coefficients stored in a file. How can I read the values in?

Re: Read coefficients for -function from a file

Posted: 2018-02-13T14:14:35-07:00
by snibgo
Like this:

Code: Select all

convert in.png -function Polynomial "@poly.txt" out.png

Re: Read coefficients for -function from a file

Posted: 2018-02-13T14:25:35-07:00
by PaulAThompson
Thanks. Works like a charm.