1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef UTIL_SSIM_H_
- #define UTIL_SSIM_H_
- #include <math.h> // For log10()
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !defined(INT_TYPES_DEFINED) && !defined(UINT8_TYPE_DEFINED)
- typedef unsigned char uint8_t;
- #define UINT8_TYPE_DEFINED
- #endif
- double CalcSSIM(const uint8_t* org,
- const uint8_t* rec,
- const int image_width,
- const int image_height);
- double CalcLSSIM(double ssim);
- #ifdef __cplusplus
- }
- #endif
- #endif
|