Image::BoxFind::Testing::Eyeballs - lib of rects found in images via 'eyeball'
use Image::BoxFind::Testing::Eyeballs ':all'; my $expected_rect_list = define_expected_via_eyeball( $image_file_name );
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 "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.
This module exports a single function (at present):
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.
Note, originally seeded with material cut and pasted from
/home/doom/End/Cave/GuiTest/lib/perl/Image/t/04-Image-BoxFind.t
o related modules: L<Image::BoxFind>
TODO o web site set up for your module (if you have it)
Joseph Brenner, <doom@kzsu.stanford.edu>
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.
None reported... yet.