BASIS  version 1.2.3 (revision 2104)
Functions
testdriver.hxx File Reference

Default test driver implementation. More...

#include <netdb.h>
+ Include dependency graph for testdriver.hxx:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

vector< string > get_baseline_filenames (string filename_template)
int image_regression_test (const char *imagefile, const char *baseline, double intensity_tolerance, unsigned int max_number_of_differences, unsigned int tolerance_radius, int report)
 Compare output image to baseline image.
void testdriversetup (int *argc, char **argv[])
 Parse command-line arguments and initialize test driver.

Detailed Description

Default test driver implementation.

Copyright (c) 2011 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.

Contact: SBIA Group <sbia-software at uphs.upenn.edu>

Definition in file testdriver.hxx.


Function Documentation

int image_regression_test ( const char *  imagefile,
const char *  baseline,
double  intensity_tolerance = 2.0,
unsigned int  max_number_of_differences = 0,
unsigned int  tolerance_radius = 0,
int  report = 0 
)

Compare output image to baseline image.

This function compares a given image to a baseline image and returns a regression test result depending on how well the output image matches the baseline image given the provided tolerance arguments.

Parameters:
[in]imagefileOutput image file of test run.
[in]baselineBaseline image file.
[in]intensity_toleranceMaximum tolerable intensity difference.
[in]max_number_of_differencesMaximum number of differing pixels.
[in]tolerance_radiusTolerance radius.
[in]reportLevel of test report to generate. If zero, no report is generated. If greater than zero, a report is generated. Similar to the verbosity of a program, is this parameter used to set the verbosity of the report. Most implementations yet only either generate a (full) report or none.

Definition at line 211 of file testdriver.hxx.

void testdriversetup ( int *  argc,
char **  argv[] 
)

Parse command-line arguments and initialize test driver.

Parameters:
[in]argcNumber of arguments.
[in]argvCommand-line arguments.

Definition at line 40 of file testdriver.hxx.