Syntax:bool Imagick::medianFilterImage (float $radius)
Parameters:The function takes one parameter,
$radius,which contains the radius of the pixel’s neighborhood.
Returned value:This function returns TRUE on success.
Errors / Exceptions:This function throws an ImagickException on error.The following program illustrates the Imagick::
medianFilterImage() function in PHP:
Program :
// Create a new imagick object
$imagick
=
new
Imagick (
’ https://media.engineerforengineer.org/wp-content /uploads/20190823154611/engineerforengineer24.png ’
);
// Apply a digital filter to the image
$imagick
-> medianFilterImage (10);
header (
" Content-Type: image / jpg "
);
// Display the output image
echo
$imagick
-> getImageBlob();
?>
Output: Link: https://www.php.net/manual/en/imagick.medianfilterimage.php