Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
:notebook::camera: interface for retrieving test images
branch: master
Failed to load latest commit information.
inc installation docs
lib/Data add a description of module
share add cameraman.tiff
t only test if volume is installed
tool gh-pages
.gitignore add gh-pages to gitignore
Changes prep for release
README.pod prep for release
TODO prep for release
dist.ini prep for release
weaver.ini prep for release

README.pod

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.

Something went wrong with that request. Please try again.