OEPNTTHIN

Remove redundant tie points and ground control points


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

Back to top

Description


OEPNTTHIN thins the points in a CATALYST Professional OrthoEngine project file by automatically removing redundant tie points (TP), ground control points (GCP), or both.
Back to top

Parameters


Name Type Caption Length Value range
OEPROJI * String Input OrthoEngine project file 1 - 192  
OEPROJO * String Output OrthoEngine project file 1 - 192  
PTYPE * String Point Type 1 - 192 BOTH | GCP | TP
Default: BOTH
NUMGRID * Integer Grid size for thinning 1 -   3 - 1000
Default: 3,5
PPCELL * Integer Points per cell 1 -   1 - 1000
Default: 1,2
POINTOPT * String Point option 3 - 192 INACT | DEL
Default: INACT
RESIDUAL * String Residual calculation 1 - 192 YES | NO
Default: NO
REPORT String Report mode 0 - 192 Quick links

* Required parameter
Back to top

Parameter descriptions

OEPROJI

The name of the input OrthoEngine project file that contains the points to refine.

OEPROJO

The name of the output OrthoEngine project file.

PTYPE

The type of points in the OrthoEngine project file to thin.

The supported values are as follows:
Note: GCP thinning is not applicable to airborne digital sensor (ADS) project files. With ADS project files, thinning will be applied only to TPs, regardless of the setting for PTYPE.

NUMGRID

The number of grid cells to use when dividing the image extents for the thinning process.

The parameter is defined as follows:

			NUMGRID=PARAM1, PARAM2
			

You can specify one or two values for this parameter.

If you specify a single value, it will be used for thinning of both GCPs and TPs (based on what you specify for PTYPE). If you specify two values, the first applies to thinning GCPs and the second applies to thinning TPs, regardless of what is specified for PTYPE.

The value entered will be used for both the x and y direction if the imagery is square. If the image is not square, the number entered will be used on the short-side of the image and the long side will be calculated automatically.

For example, if you specify 3,5, the image will be divided into a three-by-three grid for GCP thinning and a five-by-five grid for TP thinning. If you enter a single value of 5, the image will be divided into a five-by-five grid for thinning both GCPs and TPs.

Note: With an ADS project, the values for NUMGRID are ignored, because OEPNTTHIN automatically divides the imagery into segments, based on the overall length of the strips.

Default values are 3,5

PPCELL

The number of points to retain after thinning each grid cell.

The parameter is defined as follows:

		PPCELL=PARAM1, PARAM2
	

You can specify one or two values for this parameter.

If you specify a single value, it will be used for thinning of both GCPs and TPs (based on what you specify for PTYPE). If you specify two values, the first applies to thinning GCPs and the second applies to thinning TPs, regardless of what is specified for PTYPE.

Default values are 1,2.

Note: With ADS data, the TP value of PPCELL defines the number of points to retain in each segment. Generally, you will use a much higher value than with non-ADS projects.

POINTOPT

Whether to change redundant points to inactive points or remove them. Supported values are: INACT is the default.

RESIDUAL

Whether to calculate residual values during thinning.

Supported values are:

REPORT

Specifies where to direct the generated report.

Available options are:

Back to top

Details

OEPNTTHIN removes redundant TPs and GCPs from an OrthoEngine project.

Automatic TP or GCP collection sometimes provides too many points in each image, and the point distribution may vary. OEPNTTHIN can reduce the number of points while maintaining a more consistent distribution of points across the image. This is achieved by dividing the image into a configurable number of grid cells and selecting points to retain in each grid cell.

OEPNTTHIN reduces the number of points as follows: with each grid cell, the points with the lowest connectivity (smaller number of rays) are removed, leaving the desired number of points in the cell. In this sequence, the points with the best connectivity will remain. If the you select to use residuals for thinning, the residual will also be considered. Points with the lowest connectivity and highest residuals are prioritized for removal.

OEPNTTHIN can be set up to designate the removed points as inactive, or remove them. You can manually examine the points designated inactive in OrthoEngine to decide if they should be removed.

After running OEPNTTHIN, an even distribution of points and proper number of points can be achieved. The model computation time and the error-detection effort should be reduced significantly.

Back to top

Example

The following example removes both redundant GCPs and TPs. With GCP thinning, each image will be divided into three-by-three grids, with one point in each grid cell. With TP thinning, the image will be divided into five-by-five grids, with two points in each grid cell. Redundant points will be removed. Redundant points will be identified by residual calculations.

EASI>OEPROJI	=	"airphoto_model.prj"
EASI>OEPROJO	=	"a.prj"
EASI>PTYPE	=	"BOTH"
EASI>NUMGRID	=	[3,5]
EASI>PPCELL	=	[1,2]
EASI>POINTOPT	=	"DEL"
EASI>RESIDUAL	=	"YES"

EASI>R OEPNTTHIN

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