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.
suggested enhancements to fx math functions
Re: suggested enhancements to fx math functions
What is the forumlation for round() given we have a pixel value and an argument given to -evalute round?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: suggested enhancements to fx math functions
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
We have added log2() and round() to the -fx option.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: suggested enhancements to fx math functions
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
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
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().If you want to reply with that I will add it or I can just leave that to you all to do.