25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

histogram.php 353 B

123456789101112131415
  1. #!/usr/bin/php5
  2. <?php
  3. $img = pipi_load_stock("random:128x128");
  4. $img = pipi_gaussian_blur($img, 10);
  5. $img = pipi_contrast($img, 0.98);
  6. $histogram = pipi_new_histogram();
  7. $histogram_img = pipi_new(320, 200);
  8. pipi_get_image_histogram($img, $histogram, 1);
  9. pipi_render_histogram($img_histogram, $histogram, 1);
  10. pipi_save($histogram_img, "out.png");
  11. ?>