HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::houghLineImage

← haldClutImage   identifyImage →

Example

function houghLineImage($image_path, $radius, $sigma, $lower_percent, $upper_percent, $width, $height, $threshold)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->cannyEdgeImage($radius, $sigma, $lower_percent, $upper_percent);
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();

    $imagick->houghLineImage($width, $height, $threshold);

    $imagick->setImageFormat('png');
    header("Content-Type: image/png");
    echo $imagick->getImageBlob();
}