Touch/mouse over to see original View modified in new window.
Radius
Image
function medianFilterImage($radius, $imagePath)
{
    $imagick = new \Imagick(realpath($imagePath));
    @$imagick->medianFilterImage($radius);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}