John Cupitt
John Cupitt
Hi @gabrieldernbach, It should be easy, yes. Could you give some more detail? Do you mean you want a histogram of pixels within a mask? Or do you want to...
I think you'd probably need to fetch every tile in the image, then mask it before passing it to your network or whatever you are using. You could generate the...
Discussion of `fetch` with some benchmarks, if you've not seen it: https://github.com/libvips/pyvips/issues/100#issuecomment-493960943
Hi @BLooperZ, This is supposed to be automatic, I think. Could you give some more details? How many images are you trying to join? What resource is being exhausted?
If you can make a small, sample program that does shows the problem, that would be great.
If you have images coming from numpy, they will all need to be in RAM. That's a lot of pixels :( 3600 * 2400 * 3500 == 30GB of memory....
If you're using numpy, you will need all the pixels in memory, there's no way around that. You could perhaps swap numpy for pyvips, that should help a bit. What...
Yes, i would sort your tiles by y and write the image in a series of sections. You'll need to add an alpha so you know which parts are unused....
I made you a tiny demo: ```python #!/usr/bin/python3 import sys import random import pyvips # we generate the image in a series of sections, then join the sections up in...
You could do it all in one python file, but it's probably safer to just run it several times. You'll need a lot of disc space. You can probably make...