1--TEST--
2Test Imagick, sigmoidalContrastImage
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11$sharpening = 1;
12$midpoint = 4;
13$sigmoidalContrast = 0.5;
14
15function sigmoidalContrastImage($sharpening, $midpoint, $sigmoidalContrast) {
16    $imagick = new \Imagick();
17    $imagick->newPseudoImage(640, 480, "magick:logo");
18    //Need some stereo image to work with.
19    $imagick->sigmoidalcontrastimage(
20        $sharpening, //sharpen
21        $midpoint,
22        $sigmoidalContrast * \Imagick::getQuantum()
23    );
24    $bytes = $imagick->getImageBlob();
25    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
26}
27
28sigmoidalContrastImage($sharpening, $midpoint, $sigmoidalContrast) ;
29echo "Ok";
30?>
31--EXPECTF--
32Ok