error_reporting(0); include("functions.php"); $h1 = "DJ Mike's Image Maker 2"; $h2 = "Reduce Noise"; ##### Start reducenoise if ( $_GET[reducenoise] ) { $radius = (int)$_GET[radius]; if ( $radius < 0 ) { $radius = 0;} ############# $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->reducenoiseimage($deg); } $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[radius] = $deg; header("Location: display.php"); exit; } ######### end reducenoise include("top.php"); ?>
Smooths the contours of an image while still preserving edge information. The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and a suitable radius will be selected for you.
include("footer.php"); ?>