| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILE_BN * | String | File name of input nadir-backward DSM | 1 - 192 | |
| FILE_FN * | String | File name of input nadir-forward DSM | 1 - 192 | |
| FILO * | String | File name of output DSM | 1 - 192 | |
| DEMFILT | String | Filter level | 0 - 192 | |
| SEGSIZE | Integer | Threshold size of isolated segments to remove | 0 - 1 | |
| DEMOPTS | String | Merging options | 0 - 192 | |
| MONITOR | String | Monitor mode | 0 - 3 | ON, OFF Default: ON |
| Back to top |
FILE_BN
The nadir-backward DSM generated by EPIPOLARDSM.
The nadir image used in generating the DSM must be the same as that specified for FILE_FN.
FILE_FN
The nadir-forward DSM generated by EPIPOLARDSM.
The nadir image used in generating the DSM must be the same as that specified for FILE_BN.
FILO
The name of the output file. A file with the same name must not exist in the output folder. The file will be created using FILE_NB as a reference. The elevation and score channels will be replaced with the merged versions.
DEMFILT
The level of filtering to apply to the generated DSM. The process applies successive noise, median, and smoothing filters.
SEGSIZE
The threshold at which to eliminate segments and interpolate values of the digital elevation model (DEM) from the surrounding data. A segment is a small, isolated group of matching pixels. Blunders often occur in these segments.
Typically, values ranging from 16 through 128 provide satisfactory results in most cases. The default value is 64. A value of zero (0) switches off the operation.
DEMOPTS
The various processing options to apply. Currently, only LAZ is supported, which is a lidar-point-cloud file in LAZ V1.2 format. The file contains all valid DEM points and any color and imagery data available. The file is created using the folder and file name of the output file you specified, and the file will have a .laz file name extension.
This parameter is optional.
MONITOR
The program progress can be monitored by printing the percentage of processing completed. A system parameter, MONITOR, controls this activity.
Available options are:
| Back to top |
SGMMERGE merges a forward-nadir and backward-nadir DSM (both in epipolar nadir space) into a new DSM. The merged DSM is of higher quality than that created with a single backward-forward pair, because the pair can be used to cross-check for blunders and occlusions, such as those due to building lean. If necessary, data in the backward-nadir DSM can be used to fix blunders and occlusions in the forward-nadir DSM, and vice versa. Because the geometry of the resulting DSM is epipolar nadir, less 'lean' is introduced.
At each point in the DSM, the forward-nadir and backward-nadir elevations are compared. When the threshold of difference between the two is small—that is, they more-or-less agree—the average of the two is used. When the threshold is exceeded, it is considered a blunder and the elevation is interpolated from the surrounding good data. All work is performed in epipolar-nadir space, so errors introduced by geocoding incorrect values are avoided.
SGMMERGE is useful only with true, tri-stereo sensors, such as the ADS aerial-strip camera and some tri-stereo-capable satellites, such as Pleiades or ZY3.
The resulting merged DSM may contain some residual blunders. Typically, these are small, disconnected patches surrounded by interpolated pixels. Such blunders can be removed by specifying a value for the SEGSIZE parameter. The default of the parameter is 64 pixels, but you can specify another size. You can also switch off the process by entering a value of zero (0). With forestry applications, a smaller value is preferred (to preserve tree crowns, for example), but with urban areas, or if DTMs will be produced from the DSM, a larger value may produce better results.
If necessary, you can create your output file in LAS or LAZ (V1.2) format by entering "LAZ" (or "LAS") as the value of DEMOPTS. By doing so, the file will be created in the folder you specified for the output file with the file name <output_file_name>_#.laz. For example, if the name of your output file is mergedsm.pix, the name of the output LAZ file is mergedsm_0.laz. If the number of output points is very large, several LAZ/LAS files may be created. Points are geocoded automatically.
| Back to top |
You have an ADS 100 tri-stereo Level 1 strip (forward.pix, nadir.pix, and backward.pix) from which you want to generate a DSM. The first step is to generate the forward-nadir and backward-nadir epipolar DSMs by running EPIPOLARDSM. In both cases, the left image will be the nadir view, and only simple noise filtering will be performed (DEMFILT="nh"). More advanced filtering and smoothing of the DSM will occur during merging.
EASI>LEFTFILE = "nadir.pix" EASI>RGHTFILE = "backward.pix" EASI>EXTINTER = 2 EASI>FILEDEM = "nadir_backward.pix" EASI>DEMFILT = "nh" EASI>COSTFUNC = "MI" EASI>PENALTY = EASI>SEGSIZE = EASI>DEMOPTS = "" EASI>RUN EPIPOLARDSM EASI>LEFTFILE = "nadir.pix" EASI>RGHTFILE = "forward.pix" EASI>FILO = "nadir_forward.pix" EASI>RUN EPIPOLARDSM EASI>FILE_BN = "nadir_backward.pix" EASI>FILE_FN = "nadir_forward.pix" EASI>FILO = "merged_dsm.pix" EASI>DEMFILT = "medium" EASI>SEGSIZE = 32 EASI>DEMOPTS = "" EASI>RUN SGMMERGE
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.