Sigma has numbers only"; exit; } if ( $_SESSION[error] ) { header("location:$self"); } ############# $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->blurImage($gaussianblur_radius, $gaussianblur_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[gaussianblur_radius] = $gaussianblur_radius; $_SESSION[gaussianblur_sigma] = $gaussianblur_sigma; header("Location: display.php"); exit; } ######### end blur include("top.php"); ?>
"> Radius: "> Sigma: ">

Blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and selects a suitable radius for you.

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