<<

NAME

Image::BoxFind::Testing::Eyeballs - lib of rects found in images via 'eyeball'

SYNOPSIS

   use Image::BoxFind::Testing::Eyeballs ':all';

   my $expected_rect_list = define_expected_via_eyeball( $image_file_name );

DESCRIPTION

To do tests of automated systems of picking rectangular features out of an image, you need to know what the expected results are. This module is a library of expected results for associated images found in t/dat/images inside this distribution.

These expected results were determined "by eyeball", by viewing the image in gimp.

the proceedure for adding coverage for new images

The "PROC" is like so:

Note, this code can use my usual "sub define_* {}" material, cut and pasted into place.

It avoids a large, unweidly data structure in one place by instead using coderefs internally.

EXPORT

This module exports a single function (at present):

define_expected_via_eyeball

Given an image name of an image in t/dat/images, returns an associated coderef which when executed, will return the list of rectangles expected to be found in that image.

Multiple forms of the image name are accepted by this routine: it uses the basename of the image, ignoring the path and file extension

See Image::BoxFind.

internally used subs (not for export)

Note, originally seeded with material cut and pasted from

  /home/doom/End/Cave/GuiTest/lib/perl/Image/t/04-Image-BoxFind.t
TODO

SEE ALSO

  o  related modules:  L<Image::BoxFind>

TODO o web site set up for your module (if you have it)

AUTHOR

Joseph Brenner, <doom@kzsu.stanford.edu>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Joseph Brenner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.

BUGS

None reported... yet.

<<