# DisparityMapToElevationMap

## Brief Description

Projects a disparity map into a regular elevation map

## Tags

Stereo

## Long Description

This application uses a disparity map computed from a stereo image pair to produce an elevation map on the ground area covered by the stereo pair. The needed inputs are : the disparity map, the stereo pair (in original geometry) and the epipolar deformation grids. These grids have to link the original geometry (stereo pair) and the epipolar geometry (disparity map).

## Parameters

- [param] -io <string> This group of parameters allows setting the input and output images and grids.. Mandatory: True. Default Value: "0"
- [param] -step <float> Spacing of the output elevation map (in meters). Mandatory: True. Default Value: "5"
- [param] -hmin <float> Minimum elevation expected (in meters). Mandatory: True. Default Value: "0"
- [param] -hmax <float> Maximum elevation expected (in meters). Mandatory: True. Default Value: "100"
- [param] -elev <string> This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application. Mandatory: True. Default Value: "0"
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"

## Limitations

None

## Authors

OTB-Team

## See Also

otbStereoRectificationGridGenerator otbBlockMatching

## Example of use

- io.in: disparity.tif

- io.left: sensor_left.tif

- io.right: sensor_right.tif

- io.lgrid: grid_epi_left.tif

- io.rgrid: grid_epi_right.tif

- io.out: dem.tif