xref: /imagick/examples/houghline.php (revision dc39604c)
1<?php
2
3/*
4        A simple example demonstrate houghline creation.
5*/
6
7/* Create the Imagick object */
8$im = new Imagick();
9
10/* Read the image file */
11$im->readImage( '/tmp/test.png' );
12
13/* Houghline the image ( width 9, height 9, threshold 40 ) */
14$im->houghLineImage( 9, 9, 40 );
15
16/* Write the houghline image to disk */
17$im->writeImage( '/tmp/hough_test.png' );
18
19/* Free resources associated to the Imagick object */
20$im->destroy();
21
22?>
23
24