Sigma has numbers only"; exit; } if ( $_SESSION[error] ) { header("location:$self"); } ############# $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->adaptivesharpenImage($adaptivesharpen_radius, $adaptivesharpen_sigma ); } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $frames = $image->getNumberImages(); if ( $frames > 1) { $image->writeImages("$path", TRUE); } else { $image->writeImage("$path"); } # save settings $_SESSION[path] = $path; $_SESSION[adaptivesharpen_radius] = $adaptivesharpen_radius; $_SESSION[adaptivesharpen_sigma] = $adaptivesharpen_sigma; header("Location: display.php"); exit; } ######### end adaptivesharpen include("top.php"); ?>
"> Radius: "> Sigma: ">

Adaptively sharpen the image by sharpening more intensely near image edges and less intensely far from edges.

radius
The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select.
sigma
The standard deviation of the Gaussian, in pixels.
channel
Provide a channel constant that is valid for your channel mode.