1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
6 #ifndef LIB_EXTRAS_METRICS_H_
7 #define LIB_EXTRAS_METRICS_H_
11 #include "lib/jxl/butteraugli/butteraugli.h"
12 #include "lib/jxl/image_bundle.h"
16 // Computes p-norm given the butteraugli distmap.
17 double ComputeDistanceP(const ImageF& distmap, const ButteraugliParams& params,
20 double ComputeDistance2(const ImageBundle& ib1, const ImageBundle& ib2,
21 const JxlCmsInterface& cms);
23 double ComputePSNR(const ImageBundle& ib1, const ImageBundle& ib2,
24 const JxlCmsInterface& cms);
28 #endif // LIB_EXTRAS_METRICS_H_