I have manipulated a 32-bit grayscale .tif
image which I converted to tensor using PIL. After this I saved it with:
torchvision.utils.save_image(train_img_poac,fp=str(j)+".tif")
This method automatically converts the tensor to an RGB format image. I want my output image to be a 32-bit grayscale image.
I tried to use the arguments in the save_image
function but could not find anything. Is converting it to numpy ndarray and then converting it to a 32-bit Image an option?