<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 21:22:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Bubble.ro: How to create the histogram of an image using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6620</guid>
      <link>http://www.phpdeveloper.org/news/6620</link>
      <description><![CDATA[<p>
On the Bubble.ro website, there's <a href="http://bubble.ro/How_to_create_the_histogram_of_an_image_using_PHP.html">an interesting tutorial</a> that guides you through the creation of a histogram for any image (that PHP can handle) automatically with a little GD functionality.
</p>
<blockquote>
The algorithm to calculate the histogram for an image is pretty straight forward if you know how to extract the RGB value of each pixel, by counting the number of pixels of each value (and then divide by the total number of pixels in order to get a normalized value).
</blockquote>
<p>
They <a href="http://bubble.ro/How_to_create_the_histogram_of_an_image_using_PHP.html">share the simple script</a> that grabs the image's data, analyzes it, and, superimposed on one corner of it, places the histogram image. They have the full source and examples available for download.
</p>]]></description>
      <pubDate>Wed, 01 Nov 2006 10:18:43 -0600</pubDate>
    </item>
  </channel>
</rss>
