# ExtractROI

## Brief Description

Extract a ROI defined by the user.

## Tags

Image Manipulation

## Long Description

This application extracts a Region Of Interest with user defined size, or reference image.

## Parameters

- [param] -in <string> Input image.. Mandatory: True. Default Value: ""
- [param] -out <string> Output image.. Mandatory: True. Default Value: ""
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
- [param] -startx <int32> ROI start x position.. Mandatory: True. Default Value: "0"
- [param] -starty <int32> ROI start y position.. Mandatory: True. Default Value: "0"
- [param] -sizex <int32> size along x in pixels.. Mandatory: True. Default Value: "0"
- [param] -sizey <int32> size along y in pixels.. Mandatory: True. Default Value: "0"
[choice] -mode standard,fit. Mandatory: True. Default Value: "standard"

- [group] -standard

- [group] -fit

- [param] -mode.fit.ref <string> Reference image to define the ROI. Mandatory: True. Default Value: ""
- [param] -mode.fit.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] -mode.fit.elev.dem <string> This parameter allows selecting a directory containing Digital Elevation Model tiles. Mandatory: False. Default Value: ""
- [param] -mode.fit.elev.geoid <string> 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 (http://hg.orfeo-toolbox.org/OTB-Data/raw-file/404aa6e4b3e0/Input/DEM/egm96.grd).. Mandatory: False. Default Value: ""
- [param] -mode.fit.elev.default <float> 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.. Mandatory: True. Default Value: "0"

[choice] -cl Channels to write in the output image. . Mandatory: True. Default Value: ""

## Limitations

None

## Authors

OTB-Team

## See Also

## Example of use

- in: VegetationIndex.hd

- startx: 40

- starty: 250

- sizex: 150

- sizey: 150

- out: ExtractROI.tif