Closed his0car closed 1 month ago
image = pyvips.Image.new_from_file(
path, memory=True
I wouldn't use memory
for slide images. You'll find it's slow and will use huge amounts of RAM.
You can stitch quickly with arrayjoin
, eg.:
tiles = [pyvips.Image.new_from_file(filename, access="sequential")
for filename in filenames]
joined = pyvips.Image.arrayjoin(tiles, across=20)
When tiling an image and stitching it back together, the images are distorted (looks like resampling and stretching or something like that). I have not made sure that PIL or something is at fault.
Code for tiling:
Code for stitching:
Visual inspection: I overlayed the images as good as it gets on the left side of the image.![stretching](https://github.com/libvips/pyvips/assets/28070935/e2a39a51-4c7b-4f78-b832-b810db054762)
I overlay the images and switch from one to another: https://imgur.com/JxHGlUa