HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::bilateralBlurImageControl

← autoThresholdImage   blackThresholdImage →

Example

function bilateralBlurImage(
    $image_path,
    float $radius,
    float $sigma,
    float $intensity_sigma,
    float $spatial_sigma
) {
    $imagick = new \Imagick(realpath($image_path));
    $imagick->bilateralBlurImage(
        $radius,
        $sigma,
        $intensity_sigma,
        $spatial_sigma
    );
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}