source: libpipi/trunk/pipi-php/examples/histogram.php @ 3086

Last change on this file since 3086 was 3086, checked in by nico, 12 years ago

Add php binding for pipi_command
Add a php rewrite of pipi.c in examples/

File size: 329 bytes
Line 
1<?
2$img = pipi_load_stock("random:128x128");
3$img = pipi_gaussian_blur($img, 10);
4$img = pipi_contrast($img, 0.98);
5
6$histogram = pipi_new_histogram();
7$histogram_img = pipi_new(320, 200);
8pipi_get_image_histogram($img, $histogram, 1);
9pipi_render_histogram($img_histogram, $histogram, 1);
10
11pipi_save($histogram_img, "out.png");
Note: See TracBrowser for help on using the repository browser.