Hello everyone,
I would like to know if it is possible convert geographic coordinates from the orthophoto into pixel coordinates of one of the images used to generate the orthophoto. For example, I would like to select a point in the geolocated orthophoto ; I know from which drone image this point comes from, and I would like to compute its pixels coordinates in the image.
I do not know which output files could give me the reprojection information, so I tried this workaround :
- Generate the orthorectified/reconstructed images, using the orthorectify.py script (located ./ODM/contrib/orthorectify/orthorectify.py)
- Open the orthorectified image, extract its geotransform matrix
- Use the geotransform matrix to convert geographic coordinates into pixel coordinates
The problem with this method is that I can convert the coordinates into pixel coordinates of the reconstructed image, and not the original drone image used.
Is there another way to proceed, or a file from which I could use the data in order to make this coordinates conversion ?
Thank you in advance.