Homologous Points Extraction
Brief Description
Compute homologous points between images using keypoints
Tags
Feature Extraction
Long Description
This application allows computing homologous points between images using keypoints. SIFT or SURF keypoints can be used and the band on which keypoints are computed can be set independently for both images. The application offers two modes : the first is the full mode where keypoints are extracted from the full extent of both images (please note that in this mode large image file are not supported). The second mode, called geobins, allows one to set-up spatial binning to get fewer points spread across the entire image. In this mode, the corresponding spatial bin in the second image is estimated using geographical transform or sensor modelling, and is padded according to the user defined precision. Last, in both modes the application can filter matches whose colocalisation in first image exceed this precision. The elevation parameters are to deal more precisely with sensor modelling in case of sensor geometry data. The outvector option allows creating a vector file with segments corresponding to the localisation error between the matches. It can be useful to assess the precision of a registration for instance. The vector file is always reprojected to EPSG:4326 to allow display in a GIS. This is done via reprojection or by applying the image sensor models.
Parameters
Input Image 1 (in1): First input image
Input band 1 (band1): Index of the band from input image 1 to use for keypoints extraction
Input Image 2 (in2): Second input image
Input band 2 (band2): Index of the band from input image 1 to use for keypoints extraction
Keypoints detection algorithm (algorithm): Choice of the detection algorithm to use
SURF algorithm (surf):
SIFT algorithm (sift):
Distance threshold for matching (threshold): The distance threshold for matching.
Use back-matching to filter matches. (backmatching): If set to true, matches should be consistent in both ways.
Keypoints search mode (mode):
Extract and match all keypoints (no streaming) (full): Extract and match all keypoints, loading both images entirely into memory
Search keypoints in small spatial bins regularly spread across first image (geobins): This method allows retrieving a set of tie points regulary spread across image 1. Corresponding bins in image 2 are retrieved using sensor and geographical information if available. The first bin position takes into account the margin parameter. Bins are cropped to the largest image region shrunk by the margin parameter for both in1 and in2 images.
Size of bin (mode.geobins.binsize): Radius of the spatial bin in pixels
Size of bin (y direction) (mode.geobins.binsizey): Radius of the spatial bin in pixels (y direction). If not set, the mode.geobins.binsize value is used.
Steps between bins (mode.geobins.binstep): Steps between bins in pixels
Steps between bins (y direction) (mode.geobins.binstepy): Steps between bins in pixels (y direction). If not set, the mode.geobins.binstep value is used.
Margin from image border to start/end bins (in pixels) (mode.geobins.margin): Margin from image border to start/end bins (in pixels)
Estimated precision of the colocalisation function (in pixels). (precision): Estimated precision of the colocalisation function in pixels
Filter points according to geographical or sensor based colocalisation (mfilter): If enabled, this option allows one to filter matches according to colocalisation from sensor or geographical information, using the given tolerancy expressed in pixels
If enabled, points from second image will be exported in WGS84 (2wgs84):
Elevation management (elev): This group of parameters allows managing 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.
DEM directory (elev.dem): This parameter allows selecting a directory containing Digital Elevation Model files. Note that this directory should contain only DEM files. Unexpected behaviour might occurs if other images are found in this directory.
Geoid File (elev.geoid): Use a geoid grid to get the height above the ellipsoid in case there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles. A version of the geoid can be found on the OTB website(https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb-data/blob/master/Input/DEM/egm96.grd).
Default elevation (elev.default): This parameter allows setting the default height above ellipsoid when there is no DEM available, no coverage for some points or pixels with no_data in the DEM tiles, and no geoid file has been set. This is also used by some application as an average elevation value.
Output file with tie points (out): File containing the list of tie points
Output vector file with tie points (outvector): File containing segments representing matches
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
Limitations
Full mode does not handle large images.
Authors
OTB-Team
See also
RefineSensorModel
Example of use
in1: sensor_stereo_left.tif
in2: sensor_stereo_right.tif
mode: full
out: homologous.txt
otbcli_HomologousPointsExtraction -in1 sensor_stereo_left.tif -in2 sensor_stereo_right.tif -mode full -out homologous.txt