I't trying to mosaic a GeoTiff raster against another. Initially, they were both georeferenced in WGS-84 CRS. Using OpenCV, I calculated a homography transformation (a 3x3 projection matrix), that transforms an image to fit the other - I did it using rasters converted to JPEG images. Then, using OpenCV function warpPerspective, I applied my homography to the image and obtained a JPEG mosaic.
Now, I want to apply that transformation matrix to the GeoTiff raster and warp it along with it's geospatial information. However, I can't find an GDAL/osgeo function that would do that: gdal.Warp() seems to be doing something else entirely.
So, my question is: is there a function in GDAL that would accept my raster image and my transformation matrix and output the correctly transformed raster with modified geospatial information?
If not, is there a possible workaround to achieve that?