First of all thanks for sharing the code, the work looks great!
I found a bug in the test script s2_tiles_supres.py and wanted to contribute with a fix.
The problem is that when you superresolve only a part of the image (let's say roi_x_y='500,500,2500,2500') the output image has the origin upperleft coordinates equal to the ones in original image, while it should have ori_coord + (500,500).
Let me show you with some images, as it's going to be clearer.
Hi Charis,
First of all thanks for sharing the code, the work looks great! I found a bug in the test script
s2_tiles_supres.py
and wanted to contribute with a fix.The problem is that when you superresolve only a part of the image (let's say roi_x_y='500,500,2500,2500') the output image has the origin upperleft coordinates equal to the ones in original image, while it should have ori_coord + (500,500).
Let me show you with some images, as it's going to be clearer.
Original code
python s2_tiles_supres.py path_to_xml output_file.tif --roi_x_y "0,0,2500,2500"
python s2_tiles_supres.py path_to_xml output_file.tif --roi_x_y "500,500,2500,2500"
After the changes in this pull request python s2_tiles_supres.py path_to_xml output_file.tif --roi_x_y "500,500,2500,2500"
I just started using gdal but I hope this fixes the issue.
Thanks again,
Ignacio