Data::TestImage - interface for retrieving test images
version 0.007
use Data::TestImage; say Data::TestImage->get_image('mandrill')->basename; # 4.2.03.tiff
Produces the mandrill image.
This module provides access to test images from several databases of standard test images.
get_dist_dir()
Returns a Path::Class::Dir object to the shared directory for the Data-TestImage distribution.
Data-TestImage
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.
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
PERL_DATA_TESTIMAGE_INSTALL
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.
Zakariyya Mughal <zmughal@cpan.org>
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.
To install Data::TestImage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::TestImage
CPAN shell
perl -MCPAN -e shell install Data::TestImage
For more information on module installation, please visit the detailed CPAN module installation guide.