<?xml version="1.0" encoding="windows-1252"?>
<node id="1001353" title="Re: BMP: Drawing or photograph?" created="2012-10-29 08:35:58" updated="2012-10-29 08:35:58">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
Just pull a histogram on a random sample of the pixels, then measure the standard deviation.  If it's low, i.e. if the histogram is well-distributed between highs and lows, and especially among colors, it's a photograph.  If it's high, and tends toward white or black pixels, it's a drawing.  Asssemble a test set of a few hundred of both types for algorithm-training purposes.</field>
<field name="root_node">
1001335</field>
<field name="parent_node">
1001335</field>
<field name="reputation">
14</field>
</data>
</node>
