Do I understand that now:
%[mean] and %[fx:mean] now produce the same global mean from all the channels and the same for min/minima max/maxima etc on the statistics
And to get any channel mean one would now do:
%[fx:mean.r] say for the red channel
If so at what version was this change made -- for my version trapping in my scripts (though this will generally not be a big issue).
In many ways this is nice as then to get the global mean from all channels I can do it in the fx escape and include other calculations. I don't have to do it in two steps getting the global mean from %[mean], storing it in a variable and then using it in a subsequent fx calculation.
Fred
possible bug fx escape IM 6.6.6.5
Re: possible bug fx escape IM 6.6.6.5
The ChangeLog says:
- 2010-11-08 6.6.5-8 Cristy <quetzlzacatenango@image...>
* %[fx:mean] is the mean of the default channels (all but opacity) (reference
viewtopic.php?f=1&t=17432).
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: possible bug fx escape IM 6.6.6.5
Thanks. Sorry I overlooked that in the changelog.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: possible bug fx escape IM 6.6.6.5
Okay. Documentation will need to be fixed to declare channel as being 'unknown', and that the channel value needed for a calculation will need to be declared.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/