| LEFT | RIGHT |
|---|---|
| 1 /* | 1 /* |
| 2 Comapre Args | 2 Comapre Args |
| 3 Copyright (C) 2006 Yangli Hector Yee | 3 Copyright (C) 2006 Yangli Hector Yee |
| 4 | 4 |
| 5 This program is free software; you can redistribute it and/or modify it under th e terms of the | 5 This program is free software; you can redistribute it and/or modify it under th e terms of the |
| 6 GNU General Public License as published by the Free Software Foundation; either version 2 of the License, | 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. | 7 or (at your option) any later version. |
| 8 | 8 |
| 9 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | 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. | 10 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 CompareArgs(); | 28 CompareArgs(); |
| 29 ~CompareArgs(); | 29 ~CompareArgs(); |
| 30 bool Parse_Args(int argc, char **argv); | 30 bool Parse_Args(int argc, char **argv); |
| 31 void Print_Args(); | 31 void Print_Args(); |
| 32 | 32 |
| 33 RGBAImage *ImgA; // Image A | 33 RGBAImage *ImgA; // Image A |
| 34 RGBAImage *ImgB; // Image B | 34 RGBAImage *ImgB; // Image B |
| 35 RGBAImage *ImgDiff; // Diff image | 35 RGBAImage *ImgDiff; // Diff image |
| 36 bool Verbose; // Print lots of text or not | 36 bool Verbose; // Print lots of text or not |
| 37 bool LuminanceOnly; // Only consider luminan ce; ignore chroma channels in the comparison. | 37 bool LuminanceOnly; // Only consider luminan ce; ignore chroma channels in the comparison. |
| 38 » float» » » EdgeDetectDegree; // degree to eliminate edges | 38 bool IgnoreEdge; // ignore edge in compar ison |
|
vangelis
2009/07/01 18:35:31
I think if you added a separate bool for "ignoreEd
| |
| 39 » int» » » EdgeNeighborNum;» // degree to eliminate e dges | |
| 39 float FieldOfView; // Field of view in degr ees | 40 float FieldOfView; // Field of view in degr ees |
| 40 float Gamma; // The gamma to convert to linear color space | 41 float Gamma; // The gamma to convert to linear color space |
| 41 float Luminance; // the display's luminance | 42 float Luminance; // the display's luminance |
| 42 unsigned int ThresholdPixels; // How many pixels different to ignore | 43 unsigned int ThresholdPixels; // How many pixels different to ignore |
| 43 std::string ErrorStr; // Error string | 44 std::string ErrorStr; // Error string |
| 44 // How much color to use in the metric. | 45 // How much color to use in the metric. |
| 45 // 0.0 is the same as LuminanceOnly = true, | 46 // 0.0 is the same as LuminanceOnly = true, |
| 46 // 1.0 means full strength. | 47 // 1.0 means full strength. |
| 47 float ColorFactor; | 48 float ColorFactor; |
| 48 // How much to down sample image before comparing, in powers of 2. | 49 // How much to down sample image before comparing, in powers of 2. |
| 49 int DownSample; | 50 int DownSample; |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 #endif | 53 #endif |
| LEFT | RIGHT |