APMODEL

Generate airphoto math model


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Related

Back to top

Description


APMODEL performs a bundle adjustment computation on a set of aerial photos with ground control points (GCPs) and tie points (TPs) in an OrthoEngine project.
Back to top

Parameters


Name Type Length Value range
InputText * String 1 - 1  
OutputMM: Output math model layer BIN port 0 - 1  
Number of Iterations Integer 0 - 1 1 - 999
Default: 100
Camera Position Threshold Float 0 - 1  
Angle Threshold Float 0 - 1  
Earth Radius Float 0 - 1 6000000 - 23000000
Report Units String 0 - 1 GROUND, PIXELS, MICRONS
Default: GROUND
Report String 0 - 192 See parameter description

* Required parameter
Back to top

Parameter descriptions

InputText

Specifies the path and file name of the input OrthoEngine project file.

The input OrthoEngine project file must exist, and must list the path names of the files that contain the aerial images. It must also contain calibrated values for the internal camera geometry, and initial values for the camera position and orientation at the exposure of each image.

The project file may also contain ground control points (GCPs) and tiepoints (TPs) to be used for the bundle adjustment. If the file does not contain GCPs or TPs, a bundle adjustment is not done, and the camera geometry and initial position and orientation values are copied to the image files.

Images in the project file must contain model information. The updated math models are automatically saved to a math model segment for each image in the project. If the image files are not in PCIDSK format, a linked file with the same name is created in the same folder to store the math model segment. This linked file is then used as input for the ortho task.

OutputMM: Output math model layer

Specifies the output math model layer in which to store the computed model.

Number of Iterations

Specifies the maximum number of iterations that the adjustment computation can perform before terminating. The default value is 100.

Camera Position Threshold

Specifies the bundle adjustment convergence criteria for the camera positions. The units are in meters or feet, depending on the map projection defined in the project file. The default value is 1.0.

Angle Threshold

Specifies the convergence threshold, in degrees, for the exterior orientation angles. The default value is 0.5.

Earth Radius

Specifies the radius value, in meters or feet, of the Earth in the working area. A unit is the same as a GCP unit.

If this parameter is not specified, errors caused by the curvature of the Earth are not corrected. An average value of 6,372,200 meters or 20,906,000 feet can be used, depending on the GCP unit. By default, no correction is made

The distortion from the Earth curvature depends on the altitude; it becomes more severe as the radial distance from the ground nadir point to the object point increases. This distance increases if the radial distance, r, increases, if the altitude increases, or if the focal length decreases. For example, for an altitude of 1,800 meters and a 152 mm focal length camera lens, an image of a radial distance of 100 mm from the principal point has an Earth curvature radial distance of 6 micrometers. For an altitude of 18,000 meters, the Earth curvature radial distance is approximately 22 micrometers. The correction of the Earth curvature requires more computation time when running ORTHO. You need not correct for the Earth curvature if the error is negligible.

Report Units

Specifies the units in which the point residuals in the model calculation summary are reported.

Valid options are:

The default value is GROUND.

Report

Specifies where to direct the generated report.

Available options are:

Back to top

Details

APMODEL calculates the mathematical model required for orthorectifying a set of images in an OrthoEngine project file. The GCPs and orbit information are taken from the project file. The appropriate math model calculation task is called, depending on the math model that is specified in the project file.

The APMODEL is an iterative, least-squares adjustment that calculates the math model several times to find the best possible solution. The best possible solution is determined when the model has converged to the point that the residual errors of the GCPs and tie points fall within the limit set in the XYZ threshold (Camera Position), the angle threshold, or until the number of iterations limit is reached. Usually, the adjustment converges quickly and using the parameter defaults does not limit the accuracy. By adjusting the thresholds and maximum number of iterations, however, you can control the convergence criteria of the model.

Note: If the specified OrthoEngine project includes any inactive images, they are excluded from processing.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.