1--TEST-- 2Test Imagick, houghLineImage 3--SKIPIF-- 4<?php 5require_once(dirname(__FILE__) . '/skipif.inc'); 6checkClassMethods('Imagick', array('houghLineImage')); 7?> 8--FILE-- 9<?php 10 11 12function houghLineImage() { 13 $path = realpath(__DIR__ . '/houghline_input_image.png'); 14 15 if ($path === false) { 16 echo "Image is not readable.\n"; 17 exit(-1); 18 } 19 20 $imagick = new \Imagick(); 21 $imagick->readImage($path); 22 $imagick->setbackgroundcolor('rgb(64, 64, 64)'); 23 $imagick->houghLineImage(20,40, 40); 24 $imagick->writeImage(__DIR__ . '/houghline_output_image.png'); 25} 26 27houghLineImage() ; 28echo "Ok"; 29?> 30--EXPECTF-- 31Ok 32