Imager::Search::Pattern - Search object for an image |
Imager::Search::Pattern - Search object for an image
my $pattern = Imager::Search::Pattern->new( driver => 'Imager::Search::Driver::HTML24', image => $Imager, ); my $regexp = $pattern->regexp;
Imager::Search::Pattern takes an Imager object, and converts it into a partially-compiled regular expression.
This partial regexp can then be quickly turned into the final the Regexp manpage once the widget of the target image is known, as well as being able to be cached.
This allows a single Imager::Search::Pattern object to be quickly applied to many different sizes of target images.
$pattern = Imager::Search::Pattern->new( driver => 'Imager::Search::Driver::HTML24', file => 'search/image.gif', cache => 1, );
See the SUPPORT section of the main the Imager::Search manpage module.
Adam Kennedy <adamk@cpan.org>
Copyright 2007 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Imager::Search::Pattern - Search object for an image |