Image resampling with a rigid transform
Resample an image with a rigid transform
This application performs a parametric transform on the input image. Scaling, translation and rotation with scaling factor are handled. Parameters of the transform is expressed in physical units, thus particular attention must be paid on pixel size (value, and sign). Moreover transform is expressed from input space to output space (on the contrary ITK Transforms are expressed form output space to input space).
Input image (in): The input image to translate.
Output image (out): The transformed output image.
Transform parameters (transform): This group of parameters allows setting the transformation to apply.
Type of transformation (transform.type): Type of transformation. Available transformations are spatial scaling, translation and rotation with scaling factor
id (id): Spatial scaling
X scaling (transform.type.id.scalex): Scaling factor between the output X spacing and the input X spacing
Y scaling (transform.type.id.scaley): Scaling factor between the output Y spacing and the input Y spacing
translation (translation): translation
The X translation (in physical units) (transform.type.translation.tx): The translation value along X axis (in physical units).
The Y translation (in physical units) (transform.type.translation.ty): The translation value along Y axis (in physical units)
X scaling (transform.type.translation.scalex): Scaling factor between the output X spacing and the input X spacing
Y scaling (transform.type.translation.scaley): Scaling factor between the output Y spacing and the input Y spacing
rotation (rotation): rotation
Rotation angle (transform.type.rotation.angle): The rotation angle in degree (values between -180 and 180)
X scaling (transform.type.rotation.scalex): Scale factor between the X spacing of the rotated output image and the X spacing of the unrotated image
Y scaling (transform.type.rotation.scaley): Scale factor between the Y spacing of the rotated output image and the Y spacing of the unrotated image
Interpolation (interpolator): This group of parameters allows one to define how the input image will be interpolated during resampling.
Nearest Neighbor interpolation (nn): Nearest neighbor interpolation leads to poor image quality, but it is very fast.
Linear interpolation (linear): Linear interpolation leads to average image quality but is quite fast
Bicubic interpolation (bco):
Radius for bicubic interpolation (interpolator.bco.radius): This parameter allows controlling the size of the bicubic interpolation filter. If the target pixel size is higher than the input pixel size, increasing this parameter will reduce aliasing artifacts.
Available RAM (Mb) (ram): This allows setting the maximum amount of RAM available for processing. As the writing task is time consuming, it is better to write large pieces of data, which can be achieved by increasing this parameter (pay attention to your system capabilities)
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
Example of use
otbcli_RigidTransformResample -in qb_toulouse_sub.tif -out rigitTransformImage.tif -transform.type rotation -transform.type.rotation.angle 20 -transform.type.rotation.scalex 2. -transform.type.rotation.scaley 2.