reinhardGlobal.m gsolve.m applyColor.m makeLuminanceMap.m readDir.m linearTonemapping.m main.m hdrTest.m showG.m hdr.m reinhardLocal.m makeImageMatrix.m sample.m weight.m