Closed psl-schaefer closed 9 months ago
Thanks for developing such a nice package.
I just have a short question. In this line:
https://github.com/BiomedicalMachineLearning/stLearn/blob/09c8d7a79979268fe78273fcb25726c5e94c2c6c/stlearn/image_preprocessing/image_tiling.py#L81
You use tile.resize((target_size, target_size)) which actually returns a copy, but you do not use the resized tile at all (i.e. you do not assign it back to tile). So an easy solution would be tile = tile.resize((target_size, target_size))
tile.resize((target_size, target_size))
tile = tile.resize((target_size, target_size))
See the documentation here: https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resize
Thank you for suggestion. We will check it and fix it soon
Thanks for developing such a nice package.
I just have a short question. In this line:
https://github.com/BiomedicalMachineLearning/stLearn/blob/09c8d7a79979268fe78273fcb25726c5e94c2c6c/stlearn/image_preprocessing/image_tiling.py#L81
You use
tile.resize((target_size, target_size))
which actually returns a copy, but you do not use the resized tile at all (i.e. you do not assign it back to tile). So an easy solution would betile = tile.resize((target_size, target_size))
See the documentation here: https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resize