How do i use this function with imagick?
$im->sigmoidalContrastImage(bool $sharpen , float $alpha , float $beta [, int $channel = Imagick::CHANNEL_ALL ]);
How do i replace the values?
Can you give me an example with some numbers?
-sigmoidal-contrast 10,40%
How do i replace this line to sigmoidalContrastImage()
sigmoidalContrastImage
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: sigmoidalContrastImage
see http://www.imagemagick.org/Usage/color_mods/#sigmoidal for an explanation of alpha and beta. I would set sharpen to off, at first, since it is not in the command line version.
"Where α is the threshold level, and β the contrast factor to be applied."
so that would be like the command line with -sigmoidal-contrast beta,alpha
http://www.imagemagick.org/script/comma ... l-contrast
"Where α is the threshold level, and β the contrast factor to be applied."
so that would be like the command line with -sigmoidal-contrast beta,alpha
http://www.imagemagick.org/script/comma ... l-contrast
Re: sigmoidalContrastImage
Does Imagick have all the commandline equivalent function?
I cant find the equivalent fill function.
//bool Imagick::setImageCompose ( int $compose ) --> WHY int here? Where can i find the integer for Hardlight?
-composite from the commandline, what happens to that?
In command line itself, what does it do?
There are function for setting the -matte, -virtual-pixel and -distort
How do i create this xc:transparent with widthxheight?
Code: Select all
convert image.jpg -colorspace gray -sigmoidal-contrast 10,40% -fill "#99cccc" -compose Hardlight -composite image.png
convert -size 184x244 xc:transparent image.png -set option:distort:viewport 184x244 -matte -virtual-pixel transparent -distort Perspective '0,0,0,39 0,203,36,244 153,0,136,0 153,203,184,224' -composite image1.png
Code: Select all
$im->setColorspace(IMGTYPE_GRAYSCALE);
$im->sigmoidalContrastImage(false, 50%,10); // from your reply!
//bool Imagick::setImageCompose ( int $compose ) --> WHY int here? Where can i find the integer for Hardlight?
Code: Select all
$im->setImageCompose (HARDLIGHT); ???
In command line itself, what does it do?
There are function for setting the -matte, -virtual-pixel and -distort
How do i create this xc:transparent with widthxheight?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: sigmoidalContrastImage
NoDoes Imagick have all the commandline equivalent function?
Hardlight has no value. It is its own value for the compose method.Where can i find the integer for Hardlight
try http://us3.php.net/manual/en/imagickdra ... lcolor.phpI cant find the equivalent fill function.
see http://us3.php.net/manual/en/imagick.newimage.phpHow do i create this xc:transparent with widthxheight?