Touch/mouse over to see original View modified in new window.
Image
Contrast
Midpoint
Contrast
function sigmoidalContrastImage($imagePath, $sharpening, $midpoint, $sigmoidalContrast)
{
    $imagick = new \Imagick(realpath($imagePath));
    //Need some stereo image to work with.
    $imagick->sigmoidalcontrastimage(
        $sharpening, //sharpen
        $midpoint,
        $sigmoidalContrast * \Imagick::getQuantum()
    );
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}