blob: 7087c6a316aab5fec1f05b8a8912cb72aa01b4d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#ifndef TOOLS_SSIMULACRA_H_
#define TOOLS_SSIMULACRA_H_
#include <vector>
#include "lib/jxl/image.h"
namespace ssimulacra {
struct SsimulacraScale {
double avg_ssim[3];
double min_ssim[3];
};
struct Ssimulacra {
std::vector<SsimulacraScale> scales;
double avg_edgediff[3];
double row_p2[2][3];
double col_p2[2][3];
double Score() const;
void PrintDetails() const;
};
Ssimulacra ComputeDiff(const jxl::Image3F& orig, const jxl::Image3F& distorted);
} // namespace ssimulacra
#endif // TOOLS_SSIMULACRA_H_
|