Page 1 of 1
sigmoidalContrastImage
Posted: 2013-10-12T09:48:02-07:00
by agriz
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()
Re: sigmoidalContrastImage
Posted: 2013-10-12T10:12:59-07:00
by fmw42
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
Re: sigmoidalContrastImage
Posted: 2013-10-12T10:27:46-07:00
by agriz
Does Imagick have all the commandline equivalent function?
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!
I cant find the equivalent fill function.
//bool Imagick::setImageCompose ( int $compose ) --> WHY int here? Where can i find the integer for Hardlight?
Code: Select all
$im->setImageCompose (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?
Re: sigmoidalContrastImage
Posted: 2013-10-12T10:48:51-07:00
by fmw42
Does Imagick have all the commandline equivalent function?
No
Where can i find the integer for Hardlight
Hardlight has no value. It is its own value for the compose method.
I cant find the equivalent fill function.
try
http://us3.php.net/manual/en/imagickdra ... lcolor.php
How do i create this xc:transparent with widthxheight?
see
http://us3.php.net/manual/en/imagick.newimage.php