3
Copyright (C) 2006 Yangli Hector Yee
5
This program is free software; you can redistribute it and/or modify it under the terms of the
6
GNU General Public License as published by the Free Software Foundation; either version 2 of the License,
7
or (at your option) any later version.
9
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with this program;
14
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
#ifndef _COMPAREARGS_H
18
#define _COMPAREARGS_H
24
// Args to pass into the comparison function
30
bool Parse_Args(int argc, char **argv);
33
RGBAImage *ImgA; // Image A
34
RGBAImage *ImgB; // Image B
35
RGBAImage *ImgDiff; // Diff image
36
bool Verbose; // Print lots of text or not
37
bool LuminanceOnly; // Only consider luminance; ignore chroma channels in the comparison.
38
float FieldOfView; // Field of view in degrees
39
float Gamma; // The gamma to convert to linear color space
40
float Luminance; // the display's luminance
41
unsigned int ThresholdPixels; // How many pixels different to ignore
42
std::string ErrorStr; // Error string
43
// How much color to use in the metric.
44
// 0.0 is the same as LuminanceOnly = true,
45
// 1.0 means full strength.
47
// How much to down sample image before comparing, in powers of 2.