Page 1 of 1
suggested enhancements to fx math functions
Posted: 2008-06-29T00:00:26-07:00
by fmw42
This is not critical as there are ways around it. But it might be nice to have round() and log2() (log base 2) functions added to the list of math functions in -fx. Would you put this on the future enhancements list.
Thanks.
Re: suggested enhancements to fx math functions
Posted: 2008-06-29T06:46:29-07:00
by magick
What is the forumlation for round() given we have a pixel value and an argument given to -evalute round?
Re: suggested enhancements to fx math functions
Posted: 2008-06-29T18:50:00-07:00
by fmw42
This is just a function in -fx, not for -evaluate. log2() and round() whatever is the standard C function for rounding from float to integer.
Re: suggested enhancements to fx math functions
Posted: 2008-06-29T20:11:17-07:00
by magick
We have added log2() and round() to the -fx option.
Re: suggested enhancements to fx math functions
Posted: 2008-06-29T20:55:51-07:00
by fmw42
Thanks. That will be handy.
P.S. Notes need to be made for them in the discussion further down. I would do that, but I don't know the exact conditions you are using for round(). See
http://magick.imagemagick.org/script/fx.php
If you want to reply with that I will add it or I can just leave that to you all to do.
I will shortly edit the options page for -evaluate log for that new capability.
Thanks again.
Fred
Re: suggested enhancements to fx math functions
Posted: 2008-06-30T04:12:11-07:00
by magick
If you want to reply with that I will add it or I can just leave that to you all to do.
You add. We already have less than 5 minutes of free time each day. For 'round' we use the libc method round() and of course for 'log2' we use the libc method log2().