// file: $USFS/class/image_eval/v1.0/image_eval_constants.h
//
// this file defines global paths, filenames, and constants
// of the image_eval class.
//
 
// make sure definitions are made only once
//
#ifndef __ISIP_IMAGE_EVAL_CONSTANTS
#define __ISIP_IMAGE_EVAL_CONSTANTS
 
// isip include files
//
#ifndef __ISIP_INTEGRAL
#include <integral.h>
#endif

// define the class name
//
#define IMAGE_EVAL_CLASS_NAME (char_1*)"Image_eval"

// define parameters related to the format of the data
//
#define IMGEV_NUM_ENTRIES (int_4)2
#define IMGEV_ENTRY_FORMAT "%s%f"

#define IMGEV_DEBUG_FORMAT_A "<%s::%s>\n%6.6ld %s\n       score: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_B "<%s::%s>\n%6.6ld t: (%7.2f) %s\n       r: (%7.2f) %s\n       diff = %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_C "<%s::%s>\nminimum difference: %7.2f\nfile: %s\n\n"
#define IMGEV_DEBUG_FORMAT_D "<%s::%s>\nmedian difference: %7.2f\nfile: %s\n\n"
#define IMGEV_DEBUG_FORMAT_E "<%s::%s>\nmaximum difference: %7.2f\nfile: %s\n\n"
#define IMGEV_DEBUG_FORMAT_F "<%s::%s>\naverage difference: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_G "<%s::%s>\nrms: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_H "<%s::%s>\ncorrelation: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_I "<%s::%s>\ntest average: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_J "<%s::%s>\nref average: %7.2f\n\n"
#define IMGEV_DEBUG_FORMAT_K "<%s::%s>\nbin: %4.4ld midpoint: %7.2f num: %7.2f\n"

#define IMGEV_PRINT_FORMAT_A "bin: %ld midpoint: %7.2f freq: %6ld\n"
#define IMGEV_PRINT_FORMAT_C "minimum difference: %7.2f\nfile: %s\n\n"
#define IMGEV_PRINT_FORMAT_D "median difference: %7.2f\nfile: %s\n\n"
#define IMGEV_PRINT_FORMAT_E "maximum difference: %7.2f\nfile: %s\n\n"
#define IMGEV_PRINT_FORMAT_F "average difference: %7.2f\n"
#define IMGEV_PRINT_FORMAT_G "rms: %7.2f\n"
#define IMGEV_PRINT_FORMAT_H "\ncorrelation: %7.2f\n"

// define buffer grow size
//
#define IMGEV_INITIAL_ARRAY_SIZE (int_4)1024
#define IMGEV_ARRAY_GROW_SIZE 1024

// define initial mininum and maximum scores
//
#define IMGEV_MIN_SCORE (int_4)9999
#define IMGEV_MAX_SCORE (int_4)-9999

// define return codes for comparison
//
#define IMGEV_LESS_THAN (int)-1
#define IMGEV_EQUAL (int)0
#define IMGEV_GREATER_THAN (int)1

// define return codes for binary search if item not found
//
#define IMGEV_NOT_FOUND (int_4)-1

#define IMGEV_COMMENT_CHAR '#'

#define IMGEV_ERROR (float_4)0.0

// end of file
//
#endif






