in reply to Re: Perl Image Analysis
in thread Perl Image Analysis
If your image does have only one channel (check $image->getchannels) the channels argument is unneeded so you have:# get all the samples for row $y my @samples = $image->getsamples(y => $y, channels => [ 0 ]);
You can also get the samples as a string of bytes:my @samples = $image->getsamples(y => $y);
You don't mention the precision of your data, but Imager currently always reads TIFFs at 8-bits/sample, even if the TIFF has higher precision.my $samples = $image->getsamples(y => $y);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Image Analysis
by lparsons42 (Novice) on Oct 05, 2006 at 13:49 UTC | |
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 grep (Monsignor) on Oct 06, 2006 at 20:22 UTC | |
by rustyjuggler (Initiate) on Oct 06, 2006 at 06:41 UTC |