| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILE * | String | Input file name | 1 - 192 | |
| DBGC * | Integer | Input GCP segment or layer | 1 - 1 | |
| MMSEG | Integer | Math-model segment or layer | 0 - 1 | |
| ORBIT | Integer | Input orbit segment | 0 - 1 | |
| MODELTYP * | String | Model type | 2 - 4 | SAT | RF | AP | POLY | ADS |RS |
| ORDER | Integer | Transformation order | 0 - 1 | -2 - 8 Default: 0 |
| REJECT | Float | Rejection method | 0 - 3 | Default: 5.0, 2.0, 2.0 |
| POINTOPT | String | Point option? DEL/INACT | 0 - 5 | Default: INACT |
| LASC | Integer | Output refined GCP segment number | 0 - | |
| IMSTAT | Float | Output GCP refinement statistics | 0 - 48 | |
| REPORT | String | Report mode | 0 - 192 | Quick links |
| Back to top |
FILE
The name of the file that contains the image data and the set of GCPs to refine.
DBGC
The GCP segment or layer number that contains the set of GCPs to refine. The segment or layer must be in a georeferencing unit other than pixels.
MMSEG
The math-model segment that contains the math model to use for the refinement.
ORBIT
If the satellite ortho model, specified by the Model Type (MODELTYP) parameter, is used to remove inaccurate GCPs from a raw satellite scene, this parameter specifies the orbit segment that contains the ephemeris data for the input raw image. If you specify POLY (Polynomial) as the model type, you need not specify a value for this parameter.
MODELTYP
The model type to use in refining the GCPs.
ORDER
The polynomial transformation order number for the Polynomial or Rational Function Model.
REJECT
The method to use to reject GCPs.
If no value is specified for this parameter, GCPREFN uses the root-mean-square (RMS) error-rejection method by default, with the values for the minimum x and y RMS set to 2.0.
There are five modes available. The parameters are defined using two values (PARAM1, PARAM2). These vary in meaning depending on the selected rejection method (MODE).
MODE=1 represents the absolute number of points to reject, starting with the ones with the highest residual.
For example, to give twice the weight to the x-residual as the y-residual, enter a rejection weighting of 2. By default, the residual in x and y will have the same weight. Therefore, if you have a point with an x-residual of 0.4 and a y-residual of 0.5, the point will be given an x-residual of 0.8 and a y-residual of 0.5 for the rejection.
To, for example, apply the Absolute Number rejection method (mode 1), reject 10 GCPs, and give the x-residual half the weight as that of the y-residual, enter 1, 10, 0.5.
MODE=2 represents the percentage number of points to reject, starting with the one with the highest residual.
For example, to give twice the weight to the x-residual as the y-residual, enter a rejection weighting of 2. By default, the residual in x and y will have the same weight. Therefore, if you have a point with an x-residual of 0.4 and a y-residual of 0.5, the point will be given an x-residual of 0.8 and a y-residual of 0.5 for the rejection.
To, for example, apply the Percentage Number rejection method (mode 2), reject five percent of GCPs, and give the x-residual twice the weight as that of the y-residual, enter 2, 5 ,2.
MODE=3 represents the sigma standard deviation of points to reject.
For example, to apply the Standard Deviation rejection method (mode 3), reject points that have a standard deviation higher than two of the x-residual mean, and reject points that have a standard deviation higher than one of the y-residual mean, enter 3, 2, 1.
MODE=4 represents the absolute distance of the points to reject in terms of the residuals.
Rejection starts from the point with the largest x or y residual distance.
For example, to apply the Absolute Distance rejection method (mode 4), reject pixels with an x-residual value greater than 2 pixels, and reject pixels with a y-residual value greater than 2 pixels, enter 4, 2, 2.
MODE=5 represents the RMS error of points to reject. Rejection starts from the point with the largest residual error for any point, then recomputes the math model and RMS error. If the RMS error is still above the specified thresholds, the point with the next highest residual is removed and so on, until the x-RMS and y-RMS errors are equal to or less than PARAM1 pixels or PARAM2 pixels.
For example, to apply the RMS Error rejection method (mode 5) and reject points with the highest residuals until the x-RMS and y-RMS values are both less than 2 pixels, enter 5, 2, 2.
POINTOPT
Whether to write rejected points. When you specify INACT (inactive), GCPs that have been converted to inactive points are written to the newly created GCP segment. When you specify DEL (delete), the converted GCPs are omitted. In all other cases, an error is generated.
LASC
The segment number of the refined GCP segment. If no refined GCP segment was created, a value of -1 is returned.
IMSTAT
Various statistics describing the result of the refinement.
If GCPREFN does not create a refined segment, all of the entries will display as 0.
REPORT
Specifies where to direct the generated report.
Available options are:
| Back to top |
GCPREFN removes GCPs with large errors from GCP segments. The algorithm reads the GCPs from the GCP segment specified for InputGCP (DBGC) in the database file. The GCP segment must be in a georeferencing unit other than pixels.
With the Model Type (MODELTYP) parameter, you select a polynomial equation or a satellite ortho model to use to remove inaccurate GCPs. When Model Type (MODELTYP) is Toutin's Model (SAT), you must also specify an orbital segment. GCPREFN extracts the ellipsoid from the GCP segment.
For more information about the rejection methods you can use, see REJECT .
GCPREFN saves the final GCPs and writes them to a new GCP segment.
By default, GCPREFN creates a report of the final GCPs and their residuals. If you do not want to create a report, you can specify OFF as the value of REPORT.
On completion, GCPREFN updates the NUMGCPS variable with the number of GCPs remaining after refinement. It also updates IMSTAT with various statistics about GCPs.
| Back to top |
Extract GCPs and use the satellite ortho model to delete inaccurate GCPs. Any points with an x or y absolute residual error over five must be removed.
EASI>FILE = "test.pix" ! All files in this directory EASI>DBGC = 3 ! GCP segment to be refined EASI>MMSEG = 4 ! Math-model segment on FILE EASI>ORBIT = 2 ! Orbit segment on FILE EASI>MODELTYP= "SAT" ! Model type: Satellite Orbital Model EASI>ORDER = ! Parameter ignored for SAT model type EASI>REJECT = 5,5,5 ! Rejection criteria mode EASI>POINTOPT = "INACT" ! Write inactive points EASI>RUN GCPREFN ! Run to refine GCPs
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.