# get all the samples for row $y my @samples = $image->getsamples(y => $y, channels => [ 0 ]);