Imager::Search::Pattern - Search object for an image


Imager-Search documentation  | view source Contained in the Imager-Search distribution.

Index


NAME

Top

Imager::Search::Pattern - Search object for an image

SYNOPSIS

Top

  my $pattern = Imager::Search::Pattern->new(
          driver => 'Imager::Search::Driver::HTML24',
          image  => $Imager,
  );

  my $regexp = $pattern->regexp;

DESCRIPTION

Top

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 Regexp 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.

METHODS

Top

new

  $pattern = Imager::Search::Pattern->new(
      driver => 'Imager::Search::Driver::HTML24',
      file   => 'search/image.gif',
      cache  => 1,
  );

SUPPORT

Top

See the SUPPORT section of the main Imager::Search module.

AUTHOR

Top

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Top


Imager-Search documentation  | view source Contained in the Imager-Search distribution.