in reply to Re^2: Perl Image Analysis
in thread Perl Image Analysis
I'm not sure how to compare those values to each other... My code to do this was as follows:«ÑçÇ¡yÀʾ²¾í©k~Áµ¨rw U=9dyµàТI*\ZGpë«
I tried sampling two different points that I knew to be quite different by this method, which is how I got those two odd strings above. I'll have to look further into the Perldocs for Imager, it appears :)### #it appears there may actually be a way to read the grey channel #using the "getsamples" routine my $ycoord = 5; my $xcoord = 5; my $sample = $img->getsamples(y => $ycoord, x => $xcoord); print "we sampled 5,5 to have a value of $sample\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Image Analysis
by tonyc (Hermit) on Oct 06, 2006 at 01:10 UTC | |
by lparsons42 (Novice) on Oct 06, 2006 at 18:58 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2006 at 20:05 UTC | |
by lparsons42 (Novice) on Oct 06, 2006 at 21:14 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2006 at 21:36 UTC | |
| |
by grep (Monsignor) on Oct 06, 2006 at 20:22 UTC | |
|
Re^4: Perl Image Analysis
by rustyjuggler (Initiate) on Oct 06, 2006 at 06:41 UTC |