Keywords: sensor, distortion
Summary
This demo shows how to use the lens distortion model in the DIRSIG5 BasicPlatform sensor plugin. This feature allows you enhance the pinhole camera approximation employed by this sensor plugin with a common parametric lens distortion model (similar to the Brown-Conrady model) that allows the user to introduce common distortions including barrel, pin cushion, etc.
Important
|
This feature is an advanced feature that is currently only
available by hand-editing the .platform file to add the
lens distortion coefficient. |
Details
The details of the 5-parameter lens distortion model are provided in this section of the BasicPlatform sensor plugin manual.
Important Files
The demo.platform
allows you to optionally define the parameters
for the lens distortion model for each instrument in the platform.
These corefficients for the 5-parameter model are supplied via the
<distortion>
element in the instruments <properties>
element.
The coefficients used in this demo are shown below:
<instrument type="generic" name="New Instrument">
<properties>
<focallength>35</focallength>
<distortion>
<k1>5</k1>
<k2>2.5</k2>
<k3>-100</k3>
<p1>0.1</p1>
<p2>0.05</p2>
</distortion>
</properties>
<focalplane enabled="true" name="New Focal Plane">
...
</focalplane>
Setup
To run the simulation, perform the following steps:
-
Run the DIRSIG5
demo.jsim
file -
Load the resulting
demo.img
radiance file in the image viewer.
Results
