KernelGAN icon indicating copy to clipboard operation
KernelGAN copied to clipboard

The parameters when the image is saved

Open zerodohero opened this issue 4 years ago • 2 comments

    **max_val = 255 if sr.dtype == 'uint8' else 1.
    plt.imsave(os.path.join(conf.output_dir_path, 'ZSSR_%s.tif' % conf.img_name), sr, vmin=0, vmax=max_val, dpi=1)**

I want to ask what is the significance of **max_val?**Since Matplotlib does not hold tiF images, I need another library, such as Imageio, to hold TIF images, but it does not have these parameters. Does this affect the final result?Because the image I get is whiter, just like the transparent white layer above.

zerodohero avatar Aug 02 '20 10:08 zerodohero

It either clips or compresses the values accordingly. I do not remember. Any, I think it is not significant at all

sefibk avatar Aug 02 '20 10:08 sefibk

It either clips or compresses the values accordingly. I do not remember. Any, I think it is not significant at all

thank you very much.

zerodohero avatar Aug 02 '20 10:08 zerodohero