Zakariyya Mughal

NAME

Data::TestImage - interface for retrieving test images

VERSION

version 0.006

SYNOPSIS

    use Data::TestImage;

    say Data::TestImage->get_image('mandrill')->basename;
    # 4.2.03.tiff

Produces the mandrill image.

Mandrill image

METHODS

get_dist_dir

    get_dist_dir()

Returns a Path::Class::Dir object to the shared directory for the Data-TestImage distribution.

get_image

    get_image( $image_name )

Calls "get_image" in Data::TestImage::DB on Data::TestImage::DB::Other and Data::TestImage::DB::USC::SIPI. Returns an instance of Path::Class::File.

INSTALLATION

Some of the image databases can be configured to install more images at configuration time. This can be accomplished by setting the PERL_DATA_TESTIMAGE_INSTALL environment variable prior to installation, for example

    export PERL_DATA_TESTIMAGE_INSTALL="USC::SIPI=miscellaneous,sequences"
    cpanm Data::TestImage

See the database documentation for more information. Multiple databases can be configured by putting a space between each sequence.

AUTHOR

Zakariyya Mughal <zmughal@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Zakariyya Mughal.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.