SAGA 9.12.1 | Tool Library Documentation

IMCORR - Feature Tracking


Description

The tool performs displacement analysis using image cross-correlation between two raster datasets. For each raster cell, a reference window and a search window are defined. The reference window extracts a template pattern, which is then matched within the larger search window. The algorithm identifies the correlation peak and uses its position to calculate the magnitude and direction of displacement. The maximum displacement of a feature that can be measured is: (search chip size/2 - reference chip size/2) * cell size This maximum applies only to exactly diagonal motion. In order to measure larger distances, a known offset between reference and search window can be given. The offset specifies the x/y components of the expected movement. Besides a constant offset, spatially variable offsets can be applied when a point shapes layer with start positions and x- and y-displacements, e.g. from a previous tool run, is provided. The tool can take two elevation models to query the elevations at the start and end points of the each detected movement to compute a 3D displacement vector. The tool has been ported to SAGA from the standalone IMCORR software developed by the National Snow and Ice Data Center in Boulder, Colorado, United States, and extended to take also elevation and spatially variable offsets into account. The tool computes the following attributes (some of them are only available if elevation data is provided):

Note: the tool requires that the input data does not contain any NoData cells.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGrid 1grid, inputGRID_1The first grid to correlate.-
Grid 2grid, inputGRID_2The second grid to correlate.-
DTM 1grid, input, optionalDTM_1The DEM used to extract elevation information for grid 1.-
DTM 2grid, input, optionalDTM_2The DEM used to extract elevation information for grid 2.-
Displacement Offsetsshapes, inputSHP_OFFSETA point shapes layer with start positions and pre-calculated displacement offsets.-
OutputCorrelated Pointsshapes, outputCORRPOINTSPoint shapes layer of correlated positions with displacement and correlation information.-
Displacement Vectorshapes, outputCORRLINESLine shapes layer with displacement vectors between correlated points.-
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Search Chip SizechoiceSEARCH_CHIPSIZEThe size of the search chip (rectangular search area) used to find the correlating reference chip (pattern template) [cells].Available Choices: [0] 32x32 [1] 64x64 [2] 128x128 [3] 256x256 Default: 1
Reference Chip SizechoiceREF_CHIPSIZEThe size of the reference chip, i.e. the pattern template to find in search chip [cells].Available Choices: [0] 16x16 [1] 32x32 [2] 64x64 [3] 128x128 Default: 1
Steppinginteger numberSTEPPINGThe grid cell stepping used to move the search chip over the input grids [cells].Minimum: 1 Default: 2
Offset TypechoiceOFFSET_TYPEDetermines whether no offset between reference and search chip is applied, a uniform offset is used, or the offset varies across the spatial extent.Available Choices: [0] no offset [1] constant offset [2] spatially variable offset Default: 0
X Displacementfloating point numberDISP_XThe expected displacement in the x-direction (positive = east) [map units].Default: 0.000000
Y Displacementfloating point numberDISP_YThe expected displacement in the y-direction (positive = north) [map units].Default: 0.000000
X Displacementtable fieldFIELD_DISP_XThe attribute specifying the expected displacement in the x-direction (positive = east) [map units].-
Y Displacementtable fieldFIELD_DISP_YThe attribute specifying the expected displacement in the y-direction (positive = north) [map units].-
IDtable fieldFIELD_IDThe identifier of the measurement position.-
Maximum Distancefloating point numberMAX_DISTThe maximum distance of a raster cell node to a pre-calculated start position [map units].Minimum: 0.000000 Default: 4.000000

Command Line


Usage: saga_cmd grid_analysis 19 [-GRID_1 ] [-GRID_2 ] [-DTM_1 ] [-DTM_2 ] [-CORRPOINTS ] [-CORRLINES ] [-SEARCH_CHIPSIZE ] [-REF_CHIPSIZE ] [-STEPPING ] [-OFFSET_TYPE ] [-DISP_X ] [-DISP_Y ] [-SHP_OFFSET ] [-FIELD_DISP_X ] [-FIELD_DISP_Y ] [-FIELD_ID ] [-MAX_DIST ]
  -GRID_1:            Grid 1
	grid, input
  -GRID_2:            Grid 2
	grid, input
  -DTM_1:             DTM 1
	grid, input, optional
  -DTM_2:             DTM 2
	grid, input, optional
  -CORRPOINTS:        Correlated Points
	shapes, output
  -CORRLINES:         Displacement Vector
	shapes, output
  -SEARCH_CHIPSIZE:
                           Search Chip Size
                           	choice
                           	Available Choices:
                           	[0] 32x32
                           	[1] 64x64
                           	[2] 128x128
                           	[3] 256x256
                           	Default: 1
  -REF_CHIPSIZE:
                           Reference Chip Size
                           	choice
                           	Available Choices:
                           	[0] 16x16
                           	[1] 32x32
                           	[2] 64x64
                           	[3] 128x128
                           	Default: 1
  -STEPPING:          Stepping
	integer number
	Minimum: 1
	Default: 2
  -OFFSET_TYPE:
                           Offset Type
                           	choice
                           	Available Choices:
                           	[0] no offset
                           	[1] constant offset
                           	[2] spatially variable offset
                           	Default: 0
  -DISP_X:         X Displacement
	floating point number
	Default: 0.000000
  -DISP_Y:         Y Displacement
	floating point number
	Default: 0.000000
  -SHP_OFFSET:        Displacement Offsets
	shapes, input
  -FIELD_DISP_X:      X Displacement
	table field
  -FIELD_DISP_Y:      Y Displacement
	table field
  -FIELD_ID:          ID
	table field
  -MAX_DIST:       Maximum Distance
	floating point number
	Minimum: 0.000000
	Default: 4.000000