error in docs for Sigmoidal Non-linearity Contrast

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jcupitt
Posts: 26
Joined: 2011-04-26T05:14:01-07:00
Authentication code: 8675308

error in docs for Sigmoidal Non-linearity Contrast

Post by jcupitt »

Hi, there's a small error in the equation given here:

http://www.imagemagick.org/Usage/color_mods/#sigmoidal

It reads:

( 1/(1+exp(β*(α-u))) - 1/(1+exp(β)) ) / ( 1/(1+exp(β*(α-1))) - 1/(1+exp(β*α)) )

It should be:

( 1/(1+exp(β*(α-u))) - 1/(1+exp(β*α)) ) / ( 1/(1+exp(β*(α-1))) - 1/(1+exp(β*α)) )

ie. there's a missing alpha in the second term.

You can find discussion of this error in various places, for example the second comment on:

http://php.net/manual/en/imagick.sigmoi ... timage.php
Post Reply