Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: BMP: Drawing or photograph?

by Anonymous Monk
on Oct 29, 2012 at 12:35 UTC ( #1001353=note: print w/replies, xml ) Need Help??


in reply to BMP: Drawing or photograph?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001353]
help
Chatterbox?
[AnomalousMonk]: LanX: I should have written "vessel". Rama was (is? - I'm still hoping) no asteroid.
[erix]: itym vehicle (vessel is for water-vehicles)
[erix]: then again you may be a native speaker and I'd do better to shut up :)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-11-22 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?