MatlabPyrTools patch
From hdrvdp
The HDR-VDP-2 requires that matlabPyrTools are used with the compiled MEX files and not the default .m matlab scripts. This is because .m and MEX files return slightly different results, while the HDR-VDP-2 was calibrated for the MEX files.
Version 1.4 of matlabPyrTools fails on recent version of matlab when used with MEX files. The attached patch resolves this issue.