I work under Debian Linux and want to ortho-rectify and geo-reference images aquired by a tilted twin camera system using:
the attitude parameter (roll, ptich and heading) of the gyro-stabilized platform and
the position data (longitude, latitude, altitude)
from a parallel running IMU/GNSS logged at the mide-exposure time mark (see image below).
The flight platform is working over a sea surface, so terrain issues could be neglected. The transformation from longitude, latitude, altitude (ellipsiodal) to x, y, z (ortho-height GEOID) is done by the proj tool.
Normally I start to correct the perspective distortion ("ortho rectification") using openCV using
getPerspectiveto implement the passpoint configuration and get the rotation matrix setup and
warpPerspectiveto create the new image with a given resampling algorithm
and apply the geo-referencing aftermath
gdal_translateto write the ..gpc's and the SRS and
gdalwarpto create the GeoTIFF container with the expected resolution (resampling routine/ type again).
So the GDAL is here used as "GeoTiff-Driver" to implement the SRS metadata and to assure the resolution via passpoints which are calculated also in the
getPerscpective process before.
To avoid two interpolation steps, based on the two tools and saving time and resources, I want do do this in one programatical step (tool) after reading the raw TIFF image into the RAM.
Question: Is either
the creation of a GeoTIFF (augmentation with the co-ordiante system metadata) using openCV or
on the other hand the perspective correction in GDAL (including the C-API)
in that way possible?