00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _GAN_IMAGE_COMPARE_H
00030 #define _GAN_IMAGE_COMPARE_H
00031
00032 #include <gandalf/image/image_defs.h>
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00051 typedef enum
00052 {
00053 GAN_IMAGES_IDENTICAL,
00054 GAN_IMAGE_FORMATS_DIFFERENT,
00056 GAN_IMAGE_SIZES_DIFFERENT,
00058 GAN_IMAGE_PIXELS_DIFFERENT,
00059 GAN_IMAGES_SIMILAR,
00061 GAN_IMAGES_NOT_SIMILAR,
00063 } Gan_PixelComparison;
00064
00065 Gan_Bool gan_image_compare ( Gan_Image *image1, Gan_Image *image2,
00066 double pixel_thres, double proportion_thres,
00067 Gan_PixelComparison *result );
00068
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080
00081 #endif