# OrthoRectification parametrisation

**URL:** <https://forum.orfeo-toolbox.org/t/orthorectification-parametrisation/493>\
**Category:** OTB Usage\
**Created:** [December 9, 2019, 3:07pm UTC](https://forum.orfeo-toolbox.org/t/orthorectification-parametrisation/493 "2019-12-09T15:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakhostin](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/nakhostin/32/524_2.png) [@nakhostin](https://forum.orfeo-toolbox.org/u/nakhostin)\
**Post date:** [December 9, 2019, 3:07pm UTC](https://forum.orfeo-toolbox.org/t/orthorectification-parametrisation/493/1 "2019-12-09T15:07:55Z")

</div>

Hi,

Among other options of parametrization, it seems that one can provide the size(in pixel) of the output orthorectified image by providing integer values to ‘outputs.sizex’ and ‘outputs.sizey’. I wonder how it is possible to know / calculate the size of the output image a-priori in this case. Should this be set to the size of the input image? If not, I would appreciate any clarification / link to publication etc.

---

<div class="post-metadata">

**Author:** ![gpasero](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/gpasero/32/68_2.png) [@gpasero](https://forum.orfeo-toolbox.org/u/gpasero)\
**Post date:** [December 13, 2019, 4:10pm UTC](https://forum.orfeo-toolbox.org/t/orthorectification-parametrisation/493/2 "2019-12-13T16:10:59Z")

</div>

You should look at the documentation of the outputs.mode parameter:

```
otbcli_OrthoRectification -help outputs.mode

```

The parameters ‘outputs.sizex’ and ‘outputs.sizey’ can be tuned, but in several modes, they are actually computed by the application itself. They don’t necessarily match the input dimension, for instance the input image can be rotated w.r.t. the output projection.
