This PR implements the conversion of PIL.Image.Image to pyvips.Image as output of the image reading classes. This has the advantage that pyvips.Image, in contrast to PIL.Image.Image supports multichannel float images. This could be multiplex imaging, but also attention and/or probability maps as outputs (using a backend that supports this).
In addition, while testing the pyvips backend, a new bug was identified in the tiff writer, which is also fixed.
Also, the pyvips backend is modified so that we can leverage the on-demand loading
This PR implements the conversion of
PIL.Image.Image
topyvips.Image
as output of the image reading classes. This has the advantage thatpyvips.Image
, in contrast toPIL.Image.Image
supports multichannel float images. This could be multiplex imaging, but also attention and/or probability maps as outputs (using a backend that supports this).In addition, while testing the pyvips backend, a new bug was identified in the tiff writer, which is also fixed.
Also, the pyvips backend is modified so that we can leverage the on-demand loading