Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: BMP: Drawing or photograph?

by daxim (Chaplain)
on Oct 29, 2012 at 11:32 UTC ( #1001346=note: print w/replies, xml ) Need Help??


in reply to BMP: Drawing or photograph?

I am not a computer vision expert. Here's how I would do it:

Load some representative target images into Mathematica or similar program and try out various filters. Start with transformations related to edge-detection or finding continous areas of colour and brightness. Visit http://mathematica.stackexchange.com/questions/tagged/image-processing if you need help.

When you have found a filter or combination of filters that correctly recognise to a high confidence whether an image is suitable for JPEG compression or not, recreate them in Perl. Binding to various imaging toolkits written in C are available, so this shouldn't be too complicated. The filter (pipeline) simply returns a boolean, use PNG or JPEG output format accordingly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001346]
help
Chatterbox?
choroba hates the CB and its space insertion
Eily wondered if the space was there for a reason
[Eily]: like "Replace the T, replace the y, skip one, replace the o"
[Discipulus]: it works anyway, good morning choroba
[Discipulus]: choroba i'm considering to add some connection checking to your CB tk program: something like..

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-07-24 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (348 votes). Check out past polls.