1
0
mirror of https://github.com/cdcseacave/TinyEXIF.git synced 2026-07-30 23:53:00 +04:00

Added support for DJI distortion (#21)

This commit is contained in:
Paul Gafton
2025-10-09 11:45:16 +02:00
committed by GitHub
parent 79e124e1e1
commit e5d0e39a9b
6 changed files with 85 additions and 9 deletions
+6
View File
@@ -130,5 +130,11 @@ int main(int argc, const char** argv)
std::cout << "GPano.PosePitchDegrees " << imageEXIF.GPano.PosePitchDegrees << "\n";
if (imageEXIF.GPano.hasPoseRollDegrees())
std::cout << "GPano.PoseRollDegrees " << imageEXIF.GPano.PoseRollDegrees << "\n";
if (imageEXIF.Distortion.hasDewarpFlag())
std::cout << "Distortion.DewarpFlag " << imageEXIF.Distortion.DewarpFlag << "\n";
if (imageEXIF.Distortion.hasDistortion())
std::cout << "Distortion [K1 K2 P1 P2 K3] " << std::setprecision(6)
<< imageEXIF.Distortion.K1 << " " << imageEXIF.Distortion.K2 << " " << imageEXIF.Distortion.P1
<< " " << imageEXIF.Distortion.P2 << " " << imageEXIF.Distortion.K3 << "\n";
return EXIT_SUCCESS;
}