Page 1 of 1

-sigmoidal-contrast documentation

Posted: 2014-02-05T06:34:19-07:00
by snibgo
The documentation http://www.imagemagick.org/script/comma ... l-contrast is wrong. It says: "Contrast indicates how much to increase the contrast. For example, near 1 is none, 3 is typical and 20 is a lot. Note that exactly zero is mathematically invalid."

It should read, "... For example, near 0 is none, ..."

This is easily shown:

Code: Select all

%IM%convert %SRC% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 0.001x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 0.100x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 0.500x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 0.999x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 1.000x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:
%IM%convert %SRC% -sigmoidal-contrast 1.001x50%% -format "%%[fx:mean] %%[fx:standard_deviation] " info:

Re: -sigmoidal-contrast documentation

Posted: 2014-02-05T10:10:05-07:00
by magick
Fixed. Thanks for the patch.

Re: -sigmoidal-contrast documentation

Posted: 2014-02-05T10:56:00-07:00
by fmw42
snibgo wrote:The documentation http://www.imagemagick.org/script/comma ... l-contrast is wrong. It says: "Contrast indicates how much to increase the contrast. For example, near 1 is none, 3 is typical and 20 is a lot. Note that exactly zero is mathematically invalid."
You are correct about the old documentation. It used to not produce good results below 1 going towards zero. But the zero case has already been fixed for quite a while now thanks to Nicolas Robidoux, so zero is valid and produces a no-change result.

Re: -sigmoidal-contrast documentation

Posted: 2014-02-05T12:10:52-07:00
by snibgo
Thanks, Fred. I didn't think of testing zero but you are right, it works fine.

I suggest

Code: Select all

For example, near 0 is none, 3 is typical and 20 is a lot. Note that exactly zero is mathematically invalid.
is changed to

Code: Select all

For example, 0 is none, 3 is typical and 20 is a lot.

Re: -sigmoidal-contrast documentation

Posted: 2014-02-05T13:57:50-07:00
by fmw42
I will edit the docs if it is not already changed.