ORTHO

Orthorectify imagery


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

Back to top

Description


ORTHO orthorectifies images by using various geometric models.
Back to top

Parameters


Name Type Length Value range
Input: Image layers to process * Raster port 1 - 1024  
InputMM: Input math-model segment BIN port 0 - 1  
Dbiw Integer 0 - 4 XOff, YOff, XSize, YSize
Output: Output ortho channels Raster port 0 - 1024  
Output background Float 0 - 1 Default: 0
Upper left X coordinate String 0 - 1  
Upper left Y coordinate String 0 - 1  
Lower right X coordinate String 0 - 1  
Lower right Y coordinate String 0 - 1  
Automatic edge clipping Integer 0 - 2 -49 - 49
Default: 0
Tile positioning transformation String 0 -    
Source background options String 0 -   Default: File Metadata
Source background values Integer 0 - 1024 Default: 0
Output projection String 0 -  
Output pixel ground size: X String 0 - 1  
Output pixel ground size: Y String 0 - 1  
InputDEM: Input elevation channel Raster port 0 - 1  
Background elevation value Float 0 - 1  
Elevation reference String 0 -  
Elevation units String 0 - 1 METER | FEET | US_FEET
Elevation offset and scale Float 0 - 2  
Processing algorithm String 0 -  
Sampling interval Integer 0 - 1 1 -
Default: 1
Resample mode String 0 -   NEAR|BILIN|CUBIC|SINC8|SINC16|AVERAGE|MEDIAN|GAUSSIAN|CPLXSAR
Default: CUBIC
ShapingWindow String 4 - 1 NONE|KAISER|HAMMING|HANN|LANCZOS|PARABOLA
Default: NONE
Beta Double 0 - 1  
NormalizeFreq Double 0 - 1  
FilterXSize Integer 1 - 1 1|3|5|7|9|11|13|15|17|19|21|23|25|27|29|31|33
Default: 3
FilterYSize Integer 1 - 1 1|3|5|7|9|11|13|15|17|19|21|23|25|27|29|31|33
Default: 3
DownSamplingX Integer 0 - 1  
DownSamplingY Integer 0 - 1  

* Required parameter
Back to top

Parameter descriptions

Input: Image layers to process

The image layers to process. Each channel you specify must be of the same data type.

InputMM: Input math-model segment

The math-model segment of the input raw image to use in orthorectification. All math-model types are supported.

If you do not specify a value for this parameter, the last model segment in the input file is used.

Note: This value of this parameter may be superseded by an entry in the MFILE text file, if specified for MFILE.

Dbiw

The raster window of data to read from the input channels. The window is determined by the x-offset, y-offset, x-size, and y-size.

X-offset and y-offset define the pixel coordinate at the upper-left corner of the window. X-size is the number of pixels that define the width of the window. Y-size is the number of lines that define the height of the window.

Figure 2. Raster input window

Raster input window

Tip: Using a raster window can be particularly useful when orthorectifying airphotos scanned from film, because you can use it to exclude the registration marks and ancillary data that appear along the edge of the image.

If you do not specify a valued for this parameter, ORTHO processes the entire image.

Output: Output ortho channels

The path and file name of the output file to which to write the orthorectified channel or channels.

Output background

The background (NoData) value to use for orthorectified pixels that are not populated. Each channel is set to the same background value. The value will be truncated to the range allowed by the data type of the source image.

Upper left X coordinate

The upper-left-ground x-coordinate, in map units, for the output orthorectified image based on the value of Output projection.

If you do not specify a value for this parameter, ORTHO calculates and uses the coordinate of the upper-left corner for the maximum extent of the orthorectified image.

Note: The value you specify will be adjusted by Tile positioning transformation, if specified, to make the upper-left-corner coordinate fall on a specific raster grid.

Upper left Y coordinate

The upper-left ground y-coordinate, in map units, for the output orthorectified image based on the value of Output projection.

If you do not specify a value for this parameter, ORTHO calculates and uses the coordinate of the upper-left corner for the maximum extent of the orthorectified image.

Note: The value you specify will be adjusted by Tile positioning transformation, if specified, to make the upper-left-corner coordinate fall on a specific raster grid.

Lower right X coordinate

The lower-right-ground x-coordinate, in map units, for the output orthorectified image based on the value of Output projection.

If you do not specify a value for this parameter, ORTHO calculates and uses the coordinate of the lower-right corner for the maximum extent of the orthorectified image.

Typically, the lower-right-corner coordinate of the orthorectified image will not have this exact value, because it must conform to the upper-left coordinate and pixel size; however, the generated image will be large enough so that the lower-right x-coordinate is within the raster extents.

Lower right Y coordinate

The lower-right-ground y-coordinate, in map units, for the output orthorectified image based on the value of Output projection.

If you do not specify a value for this parameter, ORTHO calculates and uses the coordinate of the lower-right corner for the maximum extent of the orthorectified image.

Typically, the lower-right-corner coordinate of the orthorectified image will not have this exact value, because it must conform to the upper-left coordinate and pixel size; however, the generated image will be large enough so that the lower-right y-coordinate is within the raster extents.

Automatic edge clipping

The percentage of the image to clip from the edges during orthorectification. Clipping applies to each edge of the image.

For example, to clip five percent from the leftmost edge and 5 percent from the right, enter 5.

The edge clipping value can either be positve (clipping from raw image) or negative (clipping from orthorectified image). The maximum and minimum values are +/-49.

If the value is negative, edge clipping occurs after the extents of the orthorectified image (Upper left X coordinate, Upper left Y coordinate, Lower right X coordinate, Lower right Y coordinate) are determined, but before applying tile-positioning transformation.

Tip: A positive edge clipping value is effective in removing edges from the raw image such as fiducial marks.
Tip: A negative edge clipping value is effective in removing the undulating boundary that can arise due to relief displacement in images that are oriented north-south or east-west.

Tile positioning transformation

An adjustment of the upper-left-corner coordinate for the orthorectified image.

By specifying an adjustment you can generate orthorectified images that fall on a specific raster grid. You do so by providing a keyword and either two or four values.

The keyword indicates the relative positioning of the values, as follows:
After you enter the keyword, you can enter up to four values, as follows:

The values define the position of the corner or center in relation to the raster grid.

Of the four values, only Stride_X is required. If not specified, Stride_Y defaults to the value of Stride_X, and Ref_X, Ref_Y default to zero.

For example, to specify that the upper-left corner of the upper-left pixel of the image will be an even 20-unit multiple from the reference point (432345.000, 5438882.000), enter the following:

Depending on the distance of the tile from that point, its upper-left x-coordinate can be 432345.000, 432365.000, or any other multiple, but never 432346.000 or 432355.000.

If you specify values for this parameter, the effect applies in all scenarios, regardless of whether the image-corner coordinates come from the input file, upper-left x or y coordinate, or as a result of automatic computation.

This parameter is optional.

Source background options

The pixels in the source image to consider as background (NoData), potentially, in conjunction with Source Background Values. Typically, when a pixel is considered NoData, ORTHO processes NoData pixels in a specific manner.

The available values are as follows:

For specific examples, see the description of Source background values.

Source background values

The source background value or values when Source background options is any of the following:

The background value is either a single number (applicable to all channels) or as a pixel "stack." If you specify a pixel stack, but the number of values does not equal the number of channels, the list will be truncated or the last value will be repeated, as necessary. The background values will be truncated to the range allowed by the source image data type.

Note: To enter multiple values, use a comma-delimited list. The first value applies to the first channel, the second value to the second channel, and so on. If the number of values you enter are fewer than the number of input channels, the last value is repeated for each remaining channel. Conversely, if the number of values you enter is greater than the number of input channels, the extra values are ignored.

The examples in the following table apply to a three-channel, 8-bit, unsigned image.

Table 1. Comparison of values of Source background options and Source background values
Source background options Source background values Effect
All <specify values> 0 Pixel is considered background when the value of all three channels is 0.
Note: You can also obtain this result by selecting 0 {Background pixels are zero in all channels} for Source background options.
Any <specify values> 0 Pixel is considered background when the value of any of the three channels is 0.
All <specify values> 128,0,0 Pixel is considered background when its value is exactly 128 for the first channel and zero for the second and third channels.
All <specify values> 128,0,0,245 Pixel is considered background when its value is exactly 128 for the first channel and zero for the second and third channels. The value 245 is ignored.
Any <specify values> 128,0 Pixel is considered background when the value in channel 1 is 128–or–when the value in channel 2 or channel 3 is 0.
Any <specify values> 1032,0 Pixel is considered background when the value in channel 1 is 255–or–when the value in channel 2 or channel 3 is 0. The first value is truncated to the range allowed for 8U data.
File Metadata, {else Any <specify values>} 0 When a file-level NoData tag is found, a pixel is considered background when all three channels are set to this value. Otherwise, when the file contains channel-level NoData tags, a pixel is considered background when each channel with a NoData tag corresponds to its NoData value. If NoData tags are not found, a pixel is considered background when the value of any of the three channels is 0.

Output projection

The projection string for the output orthorectified image. If you do not specify a projection, the map units are determined automatically.

The standard definitions are as follows:

When you specify METER or FEET, the math model and digital elevation model (DEM) also must be METER or FEET.

When you specify a regular, Earth-referenced projection, the math model and DEM also must use a regular projection (not necessarily the same one); that is, METER and FEET are not allowed.

You can also specify the label of a projection you define, if the projection exists in the userproj.txt file; otherwise, you must enter the projection-parameter information as a string separated by the vertical bar (|). The projection-parameter string defines 18 parameters delimited by spaces, including the following:
For example, the projection named 'France93' can be specified, as follows:
LCC D350 | 0 0 3.0 46.5 44.0 49.0 700000 6600000 0 0 0 0 0 0 0 0 0 -1

You can specify the UTM grid-zone number and row, and the Earth model, as follows:

UTM [mm] [r] [Ennn]

Where:

You can specify the Earth model for LONG/LAT (and other units except METER or FEET), as follows:

LONG/LAT [Ennn]

You can specify the SPCS-zone number and Earth model, as follows:

SPCS [mmmm] [Ennn]
Where:

If the Earth model is not specified, it is assumed to be E000 (Clarke 1866).

If you do not enter a value for Output projection, the logic for determining a default ortho-coordinate system is as follows:

Output pixel ground size: X

The size of the horizontal pixel of the output image.

The output pixel size is expressed in the same units as the coordinate system of the orthorectified image.

If you do not specify a value for this parameter, a default pixel size is computed automatically.

This parameter is optional.

Output pixel ground size: Y

The size of the vertical pixel of the output image.

The output pixel size is expressed in the same units as the coordinate system of the orthorectified image.

If you do not specify a value for this parameter, the specified horizontal pixel size is used. If you specify neither a horizontal nor a vertical pixel size, the pixel size is computed automatically.

This parameter is optional.

InputDEM: Input elevation channel

The channel number of the input digital elevation model (DEM) elevation channel to process.

Background elevation value

The background elevation (NoData) value in the input elevation channel.

If you do not specify a value for this parameter, ORTHO searches for ELEVATION_BACKGROUND or NO_DATA_VALUE metadata tags, first at the channel level, then at the file level. If this value is neither specified nor found in the metadata, a default value of -32768 is applied.

This parameter is optional.

Elevation reference

The vertical reference for the elevation values in the source DEM, or for the constant value of Elevation offset and scale, if defined.

If you do not specify a value for this parameter, the value of the ELEVATION_DATUM metadata tag is used. If the tag does not exist in the DEM, the default value is used.

This parameter is optional.

Elevation units

The units of the elevation values that are stored as pixel values in the input DEM, as specified either by the value of InputDEM: Input elevation channel or by the first value specified for Elevation scale and offset.

The units of the elevation values that are stored as pixel values in the input DEM, as specified either by the value of FILEDEM or by the first value specified for ELFACTOR.

Acceptable values are as follows:

If you specify the elevation values as FEET, the conversion factor to meters is 0.3048 (corresponding to International Feet); if you specify US_FEET, the conversion factor is 1200/3937 (corresponding to U.S. Survey Feet).

If you do not specify a value for this parameter, the value of the ELEVATION_UNITS metadata tag is used. If the tag does not exist in the DEM, the default value is used.

Elevation offset and scale

The value or values by which to shift and scale the DEM pixel values according to the unit of measure selected for Elevation Unit.

You can enter enter up to two values to specify this parameter: the first defines the offset while the second, optionally, defines the scale.

The conversion formula is as follows:

elevation_value = scale × (DEM_pixel_value + offset)
          

If you do not specify a value for this parameter, a default of 0.0 and and 1.0 is applied for offset and scale, respectively.

If you do not specify a value for this parameter, the values of the ELEVATION_OFFSET and ELEVATION_SCALE metadata tags are used. If the tag does not exist in the DEM, the default value is used.

Processing algorithm

The amount of memory (in megabytes) for the algorithm to use.

If you do not specify a limit for the host memory, a default of 1 GB or half the available physical memory, whichever is smaller, is applied.

Sampling interval

The pixel spacing at which rigorous calculations are performed; that is, the spacing at which the math model is evaluated to determine the location of the orthorectified pixel in the source raster. A value of 1 causes the rigorous calculation to be performed for each output pixel.

With intermediate pixels, the projection from the image to the Earth surface is approximated by linearly interpolating it from the nearest locations at which the full orthorectification operation was performed.

Entering a value of 1 will provide satisfactory results in most cases. However, with math models that are more computationally intensive, a greater value may improve performance, but at the expense of accuracy. The degree of loss in accuracy will depend on viewing geometry, and the resolution and roughness of the DEM.

Resample mode

The resampling method to use for orthorectification.

The following methods are supported:

With 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 2,047 if 11-bit data is stored in a 16-bit file. FILL defines the behavior when the resampling window contains NoData pixels: NN performs resampling by using the nearest-neighbor method, while BGD indicates that the output pixel will be set to the background value. By default, NN is used for FILL.

For more information about the available resampling methods, see Resampling.

ShapingWindow

The window that attenuates the sinc coefficients to reduce resampling artifacts, available only when SINC8 or SINC16 is selected for Resample mode.

The available options are as follows:

This parameter is optional.

Beta

The shape of the Kaiser window, applicable only when Kaiser is selected for Shaping window. The greater the value, the greater the attenuation of the sinc coefficients. The value can range from 1.0 through 10.0.

This parameter is optional.

NormalizeFreq

The normalized central frequency of the SAR image, applicable only when CPLXSAR is selected for Resampling mode. The value can range from -0.5 through 0.5.

If you do not specify a value for this parameter, the default value of 0.0 is applied.

This parameter is optional.

FilterXSize

The x-size of the window, applicable only when CPLXSAR, AVERAGE, or MEDIAN is selected for Resampling mode.

FilterYSize

The y-size of the window, applicable only when CPLXSAR, AVERAGE, or MEDIAN is selected for Resampling mode.

DownSamplingX

The downsampling x-factor, applicable only when GAUSSIAN is selected for Resampling mode.

DownSamplingY

The downsampling x-factor, applicable only when GAUSSIAN is selected for Resampling mode.

Back to top

Details

ORTHO performs orthorectification or geometric correction on raw image data when a math model exists. If a DEM is specified as input, orthorectification also corrects for relief displacement. ORTHO supports geometric correction using PCI-supported math models.

Conversion of DEM height

To be used for orthorectification, height values in the DEM-raster file must be converted to the coordinate system of the math model by a series of transformations. The general logic used for each of the elevation-reference values is as follows:
  • Elevation reference is mean sea level (MSL)
    • Read the pixel value from the DEM raster.
    • Apply the elevation offset and scale to convert it to an MSL height in the elevation units specified.
    • If the elevation units and the linear units used by the coordinate system of the DEM differ, scale the height to the units of the DEM.
    • Determine the geoid offset in the units of the DEM, and then add the offset to the height to yield an ellipsoidal height in the units of the DEM.
    • Transform the x, y, and z position of the elevation post from the coordinate system of the DEM to the coordinate system of the math model.
    • Accept the transformed z-position as the height in the coordinate system of the math model.
  • Elevation reference is ellipsoid
    • Read the pixel value from the DEM raster.
    • Apply the elevation offset and scale to convert it to an ellipsoidal height in the elevation units specified.
    • If the elevation units and the linear units used by the coordinate system of the DEM differ, scale the height to the units of the DEM.
    • Transform the x, y, and z position of the elevation post from the coordinate system of the DEM to the coordinate system of the math model.
    • Accept the transformed z-position as the height in the coordinate system of the math model.

Calculation of orthorectification layout

The position and size of the output orthorectified image is determined by the input image, DEM, raster input window, upper-left and lower-right ground coordinates, and tile positioning transformation. The general logic used to determine the boundaries of the orthorectified image is as follows:
  1. Consider the input window, and then compile a list of pixel locations along the boundary of the source image.
  2. From the elevation surface entered, determine the x, y, and z ground locations of the boundary pixels in the source image, and discard those that fall outside the DEM.
  3. Compile a list of pixel locations along the DEM boundary.
  4. Consider the x, y, and z position of each boundary pixel in the DEM, determine the positions in the source image, and then discard any pixels that do not fall within the extents of the source image.

    The set of boundary pixels in the orthorectified image is defined as all the image-boundary pixels falling within the DEM raster and all of the DEM-boundary pixels falling within the source-image raster.

  5. Determine the minimum-bounding rectangle of the boundary pixels in the orthorectified image, and then define the upper-left corner coordinates and raster dimensions such that all boundary pixels are enclosed.
  6. Adjust the upper-left corner coordinate such that it is an integer multiple of the resolution of the orthorectified image. Adjust the raster dimension, as necessary, such that all boundary pixels in the orthorectified image are still covered.
  7. Clip the extents of the orthorectified image to cover just the specified upper-left and lower-right coordinates, if entered.
  8. Apply the automatic edge clipping to reduce the extents of the orthorectified image.
  9. Apply the tile positioning transformation to adjust the extents of the orthorectified image.
  10. Use the resulting corner coordinates and image dimensions to create the orthorectified image.
Note: Some steps may be skipped, depending on the information you provide as input. For example, if you did not set up ORTHO to perform edge clipping, it is skipped.

Input of degrees, minutes, and seconds

Each field that accepts string-encoded, numeric parameters can accept an input format of degrees, minutes, and seconds (DMS). ORTHO automatically converts the specified value to a decimal number. This conversion is performed even if the coordinate system of the orthorectified image is not LAT/LONG; the converted decimal number is assumed to be in the units of the coordinate system of the orthorectified image.

The following parameters accept DMS-input format:
  • Upper-left X coordinate
  • Upper-left Y coordinate
  • Lower-right X coordinate
  • Lower-right Y coordinate
  • Tile positioning transformation
  • Output pixel ground size X
  • Ouput pixel ground size Y
The following forms of DMS input are accepted:
  • DD MM SS.SSS H: separated by blanks, with trailing hemisphere indicator. H can be E, W, N, or S.
  • DDdMM'SS.SSS"H: delimited by degrees (d), minutes ('), seconds (") tokens
  • DDdMM'SS.SSS H: delimited by degrees (d), minutes ('), but no token needed for seconds field
  • SS.SSS": seconds only

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