How to resize a tiff image with multiple channels?
问题 I have a tiff image of size 21 X 513 X 513 where (513, 513) is the height and width of the image containing 21 channels. How can I resize this image to 21 X 500 X 375? I am trying to use PILLOW to do so. But can't figure out if I am doing something wrong. >>> from PIL import Image >>> from tifffile import imread >>> img = Image.open('new.tif') >>> img <PIL.TiffImagePlugin.TiffImageFile image mode=F size=513x513 at 0x7FB0C8E5B940> >>> resized_img = img.resize((500, 375), Image.ANTIALIAS) >>>