Skip to content

dronemapper-io/dji-dewarp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drnmppr-dewarp: Quick Tool to Apply EXIF Dewarp Distortion Correction to Images from DJI Drones. Uses exiftool to Preserve EXIF Metadata.

https://dronemapper.com

Build w/ Windows

cd build

cmake -g "Visual Studio 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_SYSTEM_VERSION=10.0 ..

Run

c:\my-images> MKDIR dewarped

c:\my-images> drnmppr-dewarp.exe "*.JPG" dewarped\

Example from Phantom 4 RTK

	Dewarp Data                     : 2018-09-04;3678.870000000000,3671.840000000000,10.100000000000,27.290000000000,-0.268652000000,0.114663000000,0.000015268800,-0.000046070700,-0.035026100000
	Dewarp Flag                     : 0

	Date and Time, fx, fy, cx, cy, k1, k2, p1, p2, k3

References

https://stackoverflow.com/questions/53511464/undistort-dji-phantom-4-rtk-image-by-exifxmp-data https://droneshopperth.com.au/product/dji-phantom-4-rtk/

Disable the distortion correction would have Phantom 4 RTK’s camera capture the unedited image with the fisheye effect.
The lens distortion parameters were all pre-measured.
These parameters would all be saved in “DewarpData” under the XMP field for every image taken.
You can also input these parameters manually to calibrate the image distortion with the third-party software.