Yup - quite nonrectangular - the initial images will look somewhat
like this - although larger and more diverse (and if ya wanna know what all of that stuff is, msg me and I'll be happy to talk about it)- and I would like to be able to select and cut out the portion of the photo that pertain to each species, dump them in a seperate file (I was thinking transparent gif or png, so the only pixels are those that are from the species), then I'd like to run a script that counts the total number of pixels taken up by the selection.
So, in really ugly psuedocode
my $referencepixels=countpixels($referencefile);
@data=ls($datadir)
foreach my $file (@data){
my $cover=countpixels($file)/$referencepixels;
$datahash{$file}=$cover;
}
output_to_datafile(%datahash);
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.