cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
cristy | 7e41fe8 | 2010-12-04 23:12:08 +0000 | [diff] [blame] | 2 | Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | dedicated to making software imaging solutions freely available. |
| 4 | |
| 5 | You may not use this file except in compliance with the License. |
| 6 | obtain a copy of the License at |
| 7 | |
| 8 | http://www.imagemagick.org/script/license.php |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | MagickCore image compare methods. |
| 17 | */ |
| 18 | #ifndef _MAGICKCORE_COMPARE_H |
| 19 | #define _MAGICKCORE_COMPARE_H |
| 20 | |
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 25 | #include "MagickCore/image.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26 | |
| 27 | typedef enum |
| 28 | { |
| 29 | UndefinedMetric, |
| 30 | AbsoluteErrorMetric, |
| 31 | MeanAbsoluteErrorMetric, |
| 32 | MeanErrorPerPixelMetric, |
| 33 | MeanSquaredErrorMetric, |
| 34 | PeakAbsoluteErrorMetric, |
| 35 | PeakSignalToNoiseRatioMetric, |
cristy | 4c929a7 | 2010-11-24 18:54:42 +0000 | [diff] [blame] | 36 | RootMeanSquaredErrorMetric, |
cristy | 343eee9 | 2010-12-11 02:17:57 +0000 | [diff] [blame] | 37 | NormalizedCrossCorrelationErrorMetric, |
| 38 | FuzzErrorMetric |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 39 | } MetricType; |
| 40 | |
| 41 | extern MagickExport double |
cristy | 8a9106f | 2011-07-05 14:39:26 +0000 | [diff] [blame] | 42 | *GetImageDistortions(Image *,const Image *,const MetricType,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 43 | |
| 44 | extern MagickExport Image |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 45 | *CompareImages(Image *,const Image *,const MetricType,double *, |
| 46 | ExceptionInfo *), |
| 47 | *SimilarityImage(Image *,const Image *,RectangleInfo *,double *, |
| 48 | ExceptionInfo *); |
| 49 | |
| 50 | extern MagickExport MagickBooleanType |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 51 | GetImageDistortion(Image *,const Image *,const MetricType,double *, |
| 52 | ExceptionInfo *), |
cristy | 018f07f | 2011-09-04 21:15:19 +0000 | [diff] [blame^] | 53 | IsImagesEqual(Image *,const Image *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 54 | |
| 55 | #if defined(__cplusplus) || defined(c_plusplus) |
| 56 | } |
| 57 | #endif |
| 58 | |
| 59 | #endif |