EPIPOLAR

Enhanced epipolar-image generation


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


EPIPOLAR generates epipolar images from stereo pairs of raw images. An epipolar pair is used in automatic extraction of a digital elevation model (DEM).
Back to top

Parameters


Name Type Caption Length Value range
MFILE * String Input file name, folder, or text file 1 - 192  
DBIC Integer Input image channels or layers 0 - 4  
MMSEG Integer Input math-model segment 0 - 1  
DBIW Integer Raster-input window 0 - 4 XOff, YOff, XSize, YSize
SRCBGD String Source-background value 0 - 192 Default: FILE
SELMTHD String Pair selection method 0 - 192 PAIR | MAXIMUM | ALL | OPT | DENSE | STRIPS | AUTO | PAIR_CONT
Default: PAIR
MINPC Integer Minimum-overlap percentage 0 - 2 0 - 100
SAMPLING Integer Downsampling factor 0 - 1 Default: 1
OUTDIR String Output folder 0 - 192  
OUTBGD Float Output-background value 0 - 1 Default: 0
TFILE String Text file name 0 - 192  
GENOPT String Generation options 0 - 192  
MEMSIZE Integer Working memory size (MB) 0 - 1 Default: 0
BREAKANG Float Flight line break angle 0 - 1  

* Required parameter
Back to top

Parameter descriptions

MFILE

The name of a folder, image file, or text file that contains the raw input images to be processed. If necessary, you can use wildcards, such as the asterisk (*) in the value string.

You can specify the value of MFILE using any of the following:
If the text-file option is used, the following general rules apply:

If you specify that value of MFILE as a text file, the files and parameters listed in the text file are used. For this task, the parameters in the text file must be delimited by semicolons and appear in the following order, where the DBIC, MMSEG, DBIW and SRCBGD parameters are optional:

[FILE];[DBIC];[MMSEG];[DBIW];[SRCBGD]

For example:

Format two lines in the text file as follows:

"C:\pci\Demo\Airphoto\S188.pix"; 1; 3;100,100,1000,1000;ALL,0

"C:\pci\Demo\Airphoto\S189.pix"; ; 3;;FILE,ANY,0

With S188.pix, only channel 1 will be processed. The math model will be read from segment 3. DBIW will be set to 100,100,1000,1000, and a SRCBGD rule of ALL,0 will be used.

With S189.pix, the parameters DBIC and DBIW will be used, but the math model will be read from segment 3 and a SRCBGD rule of FILE,ANY,0 will be used.

If the SELMTHD parameter is set to PAIR, FEPIPOLARCAND uses S188.pix as the first image and S189.pix as the second image.

DBIC

The input channel list of raw images used to create epipolar images.

If DBIC is specified in a text file (MFILE), this parameter is ignored.

If no value is specified for this parameter, all channels are processed by default.

MMSEG

The number of the segment in the input file that contains the math model for the raw images.

If no value is specified for this parameter, the last segment is used as the default.

DBIW

Specifies the raster window (x-offset, y-offset, x-size, y-size) of data to read from the input channels.

The same DBIW parameter is applied to all images, unless overridden by an entry in the MFILE.

If no value is specified for this parameter, the entire image is processed. XOff and YOff define the upper-left starting pixel coordinates of the window. XSize is the number of pixels that define the window width. YSize is the number of lines that define the window height.

Note: This parameter is particularly useful when generating epipolar images from scanned-film airphotos, as it can be used to exclude the registration marks and ancillary data printed along the edge of the image.

SRCBGD

Specifies which pixels in the source image are to be considered as background (NoData) pixels. In general, if a pixel is considered NoData, EPIPOLAR processes the pixel in a specific manner.

Available options are:
Note: To specify multiple values, use a comma-delimited list. The first value is applied to the first channel, the second value to the second channel, and so on. If fewer values are specified than the number of input channels, the last value is repeated for all remaining channels. If more values are specified than the number of input channels, the extra values are ignored.

SELMTHD

The method used to form the epipolar pairs. If no value is specified for this parameter, the Pair option is used by default.

Acceptable values are:

For the MAXIMUM, ALL, OPT, and DENSE methods, additional options may be specified in the form of KEY=value. Each KEY=value pair must be preceded by a comma.

The following KEYs and their values are recognized:

MINPC

The minimum percentage value of overlap acceptable between two images for them to be considered a valid pair. If no value is specified for this parameter, the minimum-overlap percentage defaults to 50 percent.

The first step in the pairing is to evaluate every pair to determine if the overlap is greater or equal to the value of this parameter. For each image pair, A and B, two overlap values are calculated: A/B and B/A. Pairs are rejected when the minimum of A/B and B/A is less than the value MINPC / 100. The difference between the values A/B versus B/A is larger the more the two image sizes differ.

Image Overlap Calculations

Examples:

Example Overlap Scenarios

CAUTION:
This parameter is ignored with some values of the SELMTHD (pair selection method) parameter.
Note: The MINPC parameter allows for two values. The second value is only used with the SELMTHD STRIPS, and is ignored for other selection methods. See the STRIPS method to understand how the first and second values are used to find epipolar candidates.

SAMPLING

The downsampling interval for the created epipolar image. This parameter controls the number of pixels that are used from the raw images to generate the epipolar image. The cubic-convolution resampling is performed in converting the two images to epipolar geometry. Unless specified, one pixel is used for downsampling.

OUTDIR

The folder in which to create the output files. If no value is specified for this parameter, the output files are created in the current working folder.

OUTBGD

The background (NoData) value to use for epipolar pixels that are not populated. Each channel is set to the same background value. If the value specified for SAR images in decibel scaling is larger than -100.0, it is reset to -100.0. The provided background value will be truncated to the range allowed by the source-image data type.

TFILE

A text file, to which the following information is written:

[Epipolar_Left] [Epipolar_Right] [DBIC] [MMSEG]

The text-file format is delimited by semicolons and is in the same order as the MFILE parameter in the AUTODEM function. This text file can, therefore, be used as input for AUTODEM (MFILE = TFILE).

The FILE must be specified with the name and path of the generated epipolar image.

To name the output files:

The paths in the file can be absolute or relative to the folder location of the text file.

If the text file already exists, it will be overwritten.

This parameter is optional.

GENOPT

The advanced options for creating epipolar images.

You can specify either of the following options:

MEMSIZE

The amount, in megabytes (MB), of internal memory allocated to the task. The default value is 0 MB, meaning a value of 512 MB will be used on a 64-bit operating system (OS) and 128 MB on a 32-bit OS.

BREAKANG

Optionally specifies a flight line break angle, which is used to determine the end of a flight line. The vector angles between image centers are calculated , and if the vector angle between two image center is greater than the break angle threshold the flight line ends, and a new one begins. Default value is 22.5 dgrees.

CAUTION:
Use this parameter only if the value of the SELMTHD (pair selection method) parameter is OPT or DENSE.
Back to top

Details

Epipolar images are pairs of raw images that are reprojected so that two images have a common orientation. Matching features between the images appear along a common x-axis. Epipolar pairs can be used in automatic extraction of a digital elevation model (DEM). Using epipolar images increases the speed of the correlation process and reduces the possibility of uncorrected matches.

The raw input files must have a math-model segment (MMSEG) before they can be used to create epipolar pairs. To obtain a math-model segment, export the model from CATALYST Professional OrthoEngine, or run CPMMSEG or OEMODEL.

The pair-selection method (SELMTHD) parameter allows you to select from a variety of pairing methods:

The selection criteria can be further refined by the optional KEY=value pairs. The lower and upper values of stereo separation can be used for the MAXIMUM, ALL, OPT, and DENSE methods. For example, to restrict the DENSE pair-selection method to the range of convergence angles from 20 to 40 degrees, specify the value of the SELMTHD parameter as "DENSE,SSL=20,SSU=40".

The SAR key is specific to satellite-SAR images, and is evaluated only for the MAXIMUM and ALL methods. Typically, all of the parameters are used and, therefore, it is sufficient to specify the SAR keyword by itself, for example "MAXIMUM,SAR,SSL=5,SSU=20". The non-default settings should be used only in rare circumstances and for well-understood data, so that undesirable pairs are not formed.

For example, assume a combination of images is available from the same sensor, but with right-looking ascending orbits and left-looking descending orbits. The images can be processed with the SELMTHD parameter set to "MAXIMUM,SAR=NBPT". This will ignore the look-direction and orbit-direction values when forming the pairs, and accept all pairs with the difference in incidence angles of 1 degree of more. Note that for such pairs there may be a large difference in image orientations, and the extracted digital elevation model (DEM) may be of lower quality than expected.

In another example, assume images from two different satellites are available, and they are known to have identical polarizations and similar resolutions. Such data can be processed with the SELMTHD parameter set to "ALL,SAR=LOP,SSL=10,SSU=20". This will require the same look direction, orbit direction, and polarizations for both images, but ignore the sensor-specific platform name, beam mode, and product type. The pairs would be formed only from images with scene-center incidence angles separated by between 10 and 20 degrees.

With SAMPLING (Downsampling Factor) parameter, you can specify the number of image pixels and lines to use to calculate one epipolar-image pixel. For example, the value "2" indicates that one pixel in the epipolar images is formed by combining two adjoining pixels and two adjoining lines from the raw images.

Before processing, EPIPOLAR tests the convergence angle between images. Image pairs that exhibit poor stereo convergence will not be processed. The minimum acceptable convergence angle is 1 degree, and the maximum is 140 degrees.

Back to top

Example

This example creates epipolar pairs of the images stored in the demo folder, with file names beginning with the prefix po and having the extension pix. The MAXIMUM method is used to form the pairs, with at least 40 percent overlapping. All of the epipolar files that are created are written to the output folder, demo.

EASI>MFILE="demo/po*.pix"    ! input image file
EASI>DBIC=3          ! uses channel 3 in the image file
EASI>MMSEG=          ! uses the last segment
EASI>DBIW=           ! use the full image extents
EASI>SRCBGD=         ! source background value
EASI>SELMTHD="Max"   ! uses MAXIMUM method to form pairs
EASI>MINPC=40        ! at least 40 percent overlapping
EASI>SAMPLING=2      ! downsampling interval is 2
EASI>OUTDIR="demo/"  ! output folder
EASI>OUTBGD= 0       ! use 0 as the output NoData value
EASI>TFILE=          ! no text file
EASI>GENOPT= ""      ! use default generation options
EASI>MEMSIZE=        ! uses 128 MB of internal memory
EASI>BREAKANG=30.0   ! flight line break angle

EASI>r EPIPOLAR

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