I have a large GeoTiff (let`s say 200,000 by 200,000 pixels) that I need to resize using, for example, opencv or gdal. The problem I am facing is that I cannot load the entire image into memory, so something like:
data_out = cv2.resize(data_in, dsize=dsize, interpolation=cv2.INTER_AREA)
is not doable. I thought to tile (or read) the large image into several smaller images (with their own geo-information) so that I can resized each of them individually and then mosaic them back together. However, this approach seems to suffer at the edges, creating discontinuities across the mosaiced output.
Is there any way I can resize the large image without loading the whole data into memory?