Grid Based Image Resampling
Brief Description
Resamples an image according to a resampling grid
Tags
Geometry
Long Description
This application allows performing image resampling from an input resampling grid.
Parameters
Input and output data (io): This group of parameters allows setting the input and output images.
Input image (io.in): The input image to resample
Output Image (io.out): The resampled output image
Resampling grid parameters (grid):
Input resampling grid (grid.in): The resampling grid
Grid Type (grid.type): allows one to choose between two grid types
Displacement grid: $G(x_out,y_out) = (x_in-x_out, y_in-y_out)$ (def): A deformation grid contains at each grid position the offset to apply to this position in order to get to the corresponding point in the input image to resample
Localisation grid: $G(x_out,y_out) = (x_in, y_in)$ (loc): A localisation grid contains at each grid position the corresponding position in the input image to resample
Output Image parameters (out): Parameters of the output image
Upper Left X (out.ulx): X Coordinate of the upper-left pixel of the output resampled image
Upper Left Y (out.uly): Y Coordinate of the upper-left pixel of the output resampled image
Size X (out.sizex): Size of the output resampled image along X (in pixels)
Size Y (out.sizey): Size of the output resampled image along Y (in pixels)
Pixel Size X (out.spacingx): Size of each pixel along X axis
Pixel Size Y (out.spacingy): Size of each pixel along Y axis
Default value (out.default): The default value to give to pixel that falls outside of the input 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): Available memory for processing (in MB)
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
Limitations
None
Authors
OTB-Team
See also
otbStereorecificationGridGeneration
Example of use
io.in: ROI_IKO_PAN_LesHalles_sub.tif
io.out: ROI_IKO_PAN_LesHalles_sub_resampled.tif uint8
grid.in: ROI_IKO_PAN_LesHalles_sub_deformation_field.tif
out.sizex: 256
out.sizey: 256
grid.type: def
otbcli_GridBasedImageResampling -io.in ROI_IKO_PAN_LesHalles_sub.tif -io.out ROI_IKO_PAN_LesHalles_sub_resampled.tif uint8 -grid.in ROI_IKO_PAN_LesHalles_sub_deformation_field.tif -out.sizex 256 -out.sizey 256 -grid.type def