| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| OEPROJI * | String | Input OrthoEngine project file | 1 - 192 | |
| DISTORT | String | Algorithm to use to undistort photos | 0 - 192 | Default: LENS |
| IMGSET | String | Set of photos to process | 0 - 192 | Default: ALL |
| OEPROJO * | String | Output OrthoEngine project file | 1 - 192 | |
| OUTBGD | Float | Output background value | 0 - 1 | Default: 0 |
| OUTDIR | String | Deliverable output file folder (directory) | 0 - 256 | |
| RESAMPLE | String | Resampling method | 0 - 192 | NEAR|BILIN|CUBIC|SINC8|SINC16|AVERAGE|MEDIAN|LAGRANGE4|LAGRANGE8|GAUSSIAN Default: CUBIC |
| REPORT | String | Report mode | 0 - 192 | Quick links |
| Back to top |
OEPROJI
The path and file name of the OrthoEngine project file (*.prj) containing the aerial photos to remove distortions.
The aerial camera in the OrthoEngine project file must have undergone a self-calibration. Otherwise, an exception will be thrown.
DISTORT
IMGSET
Specifies which photos should be processed.
file.txt: specify a text file that contains scene IDs of photos to process.
[PHOTOID]
OEPROJO
The path and file name of the output OrthoEngine project file to export the undistorted photos.
The output OrthoEngine project file cannot already exisit. If a file with the same name exists, an error message will be thrown.
OUTBGD
The background (NoData) value to use for pixels that are not populated. Each channel is set to the same background value. The background value provided is truncated to the range allowed by the source image data type.
OUTDIR
A folder (directory) to which the distortion-free images will be written. If the folder does not exist, it is created automatically.
If no value is specified for this parameter, a folder that is the basename of OEPROJO is created automatically.
The name of a generated image file has generally the same base name as that of the source image file.
RESAMPLE
The resampling method to use in the undistorting process.
GAUSSIAN,DSFACTORCOL=[dc],DSFACTORROW=[dr]: Gaussian resampler.
For each resampling method, the parameters MIN=[min], MAX=[max], and FILL=[NN or BGD] can be appended as a comma-delimited list. MIN and MAX define the clamp range for output pixels; this is useful when you want to keep pixel values within a certain range (for example, 1 to 2047 if 11-bit data is stored in a 16-bit file). FILL defines the behavior when the resampling window contains NoData pixels: NN directs the resampler to use the nearest-neighbor method, while BGD indicates that the output pixel will be set to the background value. By default, NN is used as the value of FILL.
REPORT
Specifies where to direct the generated report.
Available options are:
| Back to top |
APUNDISTORT resamples raw image to compensate for lens distortions. The lens distortions can be represented in radial, decentering and grid forms. Especially the distortion grid can be a discrete form from a mix of all types of contiguous distortion models such as from various added self-calibration parameters. With BINGO, the grid can even represent non-lens distortions including corrections from atmospheric refraction and/or earth curvature.
This function has two major steps in processing. First, the transformation relationship is established for the distortion-free photos. This is done by computing the actual coordinates on the raw photo given any ideal coordinates on the distortion-free photo using camera's intrinsic parameters. Second, the values of pixels on the distortion-free photo are obtained by a specified resampling method from the raw photos employing the afore-mentioned transformation.
APUNDISTORT output new disotrtion-free photos to the output directory as well as a new OrthoEngine project file.
| Back to top |
In the following example, all photos are processed with grid distortions removed, and image observation distortions are removed from GCPs. while all Tie points are deleted from the output OE project file.
EASI>OEPROJI = "airphoto_model.prj"
EASI>DISTORT = "LENS GRID, POINTS GCP"
EASI>IMAGEST = ""
EASI>OEPROJO = "airphoto_model_undistort.prj"
EASI>OUTBGD = "0"
EASI>OUTDIR = ""
EASI>RESAMPLE = "CUBIC"
EASI>R APUNDISTORT
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.