libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

compute-hdrvdp.m (438B)


      1 % Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 %
      3 % Use of this source code is governed by a BSD-style
      4 % license that can be found in the LICENSE file.
      5 
      6 pkg load image;
      7 
      8 args = argv();
      9 
     10 original_filename = args{1};
     11 decoded_filename = args{2};
     12 
     13 original = pfs_read_luminance(original_filename);
     14 decoded = pfs_read_luminance(decoded_filename);
     15 
     16 res = hdrvdp(decoded, original, 'luminance', 30, {});
     17 printf("%f\n", res.Q);