5.4.10 Refine Sensor Model

Perform least-square fit of a sensor model to a set of tie points

Detailed description

This application reads a geom file containing a sensor model and a text file containing a list of ground control point, and performs a least-square fit of the sensor model adjustable parameters to these tie points. It produces an updated geom file as output, as well as an optional ground control points based statistics file and a vector file containing residues. The output geom file can then be used to ortho-rectify the data more accurately. Plaease note that for a proper use of the application, elevation must be correctly set (including DEM and geoid file). The map parameters allows to choose a map projection in which the accuracy will be estimated in meters.

Parameters

This section describes in details the parameters available for this application. Table 5.30, page 500 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is RefineSensorModel.




Parameter key

Parameter type

Parameter description




ingeom

Input File name

Input geom file

outgeom

Output File name

Output geom file

inpoints

Input File name

Input file containing tie points

outstat

Output File name

Output file containing output precision statistics

outvector

Output File name

Output vector file with residues

map

Choices

Output Cartographic Map Projection

map utm

Choice

Universal Trans-Mercator (UTM)

map lambert2

Choice

Lambert II Etendu

map lambert93

Choice

Lambert93

map wgs

Choice

WGS 84

map epsg

Choice

EPSG Code

map.utm.zone

Int

Zone number

map.utm.northhem

Boolean

Northern Hemisphere

map.epsg.code

Int

EPSG Code

elev

Group

Elevation management

elev.dem

Directory

DEM directory

elev.geoid

Input File name

Geoid File

elev.default

Float

Default elevation

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file








Figure 5.30: Parameters table for Refine Sensor Model.

Input geom file Geom file containing the sensor model to refine

Output geom file Geom file containing the refined sensor model

Input file containing tie points Input file containing tie points. Points are stored in following format: row col lon lat. Line beginning with # are ignored.

Output file containing output precision statistics Output file containing the following info: ref_lon ref_lat elevation predicted_lon predicted_lat x_error_ref(meters) y_error_ref(meters) global_error_ref(meters) x_error(meters) y_error(meters) overall_error(meters)

Output vector file with residues File containing segments representing residues

Output Cartographic Map Projection Parameters of the output map projection to be used. Available choices are:

Elevation management This group of parameters allows to manage elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_RefineSensorModel -ingeom input.geom -outgeom output.geom -inpoints points.txt -map epsg -map.epsg.code 32631

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the RefineSensorModel application 
RefineSensorModel = otbApplication.Registry.CreateApplication("RefineSensorModel") 
 
# The following lines set all the application parameters: 
RefineSensorModel.SetParameterString("ingeom", "input.geom") 
 
RefineSensorModel.SetParameterString("outgeom", "output.geom") 
 
RefineSensorModel.SetParameterString("inpoints", "points.txt") 
 
RefineSensorModel.SetParameterString("map","epsg") 
 
RefineSensorModel.SetParameterInt("map.epsg.code", 32631) 
 
# The following line execute the application 
RefineSensorModel.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: