def test_toneMap(): hdr=np.load('hdr.npy') out=a5.toneMap(hdr, 100, 1.0, useBila=False) io.imwrite(out, 'tone_map_gauss.png') out=a5.toneMap(hdr, 100, 2.0, useBila=True) io.imwrite(out, 'tone_map_bila.png')
def test_toneMap(): hdr=np.load('hdr.npy') out1=a5.toneMap(hdr, 100, 1, useBila=False) io.imwrite(out1, 'tone_map_ante0G.png') out2=a5.toneMap(hdr, 100, 3, useBila=True) io.imwrite(out2, 'tone_map_ante0BF.png')
def test_toneMap(file): hdr=np.load('npy/'+file+'hdr.npy') out1 = a5.toneMap(hdr, 100, 1.0, False) io.imwrite(out1, file+'tone_map_gauss.png') out2 = a5.toneMap(hdr, 100, 3.0, True) io.imwrite(out2, file+'tone_map_bila.png')
def test_toneMap_rest(): hdr=np.load('hdr1.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_ante1G.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_ante1BF.png') hdr=np.load('hdr3.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_ante3G.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_ante3BF.png') hdr=np.load('hdr_design.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_designG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_designBF.png') hdr=np.load('hdr_horse.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_horseG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_horseBF.png') hdr=np.load('hdr_sea.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_seaG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_seaBF.png') hdr=np.load('hdr_nyc.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_nycG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_nycBF.png') hdr=np.load('hdr_stairs.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_stairsG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_stairsBF.png') hdr=np.load('hdr_vine.npy') out1=a5.toneMap(hdr, useBila=False) io.imwrite(out1, 'tone_map_vineG.png') out2=a5.toneMap(hdr, useBila=True) io.imwrite(out2, 'tone_map_vineBF.png')