Fine Registration
Brief Description
Estimate disparity map between two images.
Tags
Stereo
Long Description
This application computes a disparity map between two images that correspond to the same scene. It is intended for case where small misregistration between images should be estimated and fixed. The search is performed in 2D.
The algorithm uses an iterative approach to estimate a best match between local patches. The typical use case is registration betwween similar bands, or between two acquisitions. The output image contains X and Y offsets, as well as the metric value. A sub-pixel accuracy can be expected. The input images should have the same size and same physical space.
Parameters
Reference Image (ref): The reference image.
Secondary Image (sec): The secondary image.
Output Image (out): The output image contains 3 bands, for X offset, Y offset and the metric value. It may contain a 4th one with the validity mask (if used).
Exploration Radius X (erx): The exploration radius along x (in pixels)
Exploration Radius Y (ery): The exploration radius along y (in pixels)
Metric Radius X (mrx): Radius along x (in pixels) of the metric computation window
Metric Radius Y (mry): Radius along y (in pixels) of the metric computation window
Image To Warp (w): The image to warp after disparity estimation is completed.
Output Warped Image (wo): The output warped image
Coarse Offset X (cox): Coarse offset along x (in physical space) between the two images, used as an initial offset for all pixels.
Coarse Offset Y (coy): Coarse offset along y (in physical space) between the two images, used as an initial offset for all pixels.
Sub-Sampling Rate X (ssrx): Generates a result at a coarser resolution with a given sub-sampling rate along X
Sub-Sampling Rate Y (ssry): Generates a result at a coarser resolution with a given sub-sampling rate along Y
Reference Gaussian Smoothing X (rgsx): Performs a gaussian smoothing of the reference image. Parameter is gaussian sigma (in pixels) in X direction.
Reference Gaussian Smoothing Y (rgsy): Performs a gaussian smoothing of the reference image. Parameter is gaussian sigma (in pixels) in Y direction.
Secondary Gaussian Smoothing X (sgsx): Performs a gaussian smoothing of the secondary image. Parameter is gaussian sigma (in pixels) in X direction.
Secondary Gaussian Smoothing Y (sgsy): Performs a gaussian smoothing of the secondary image. Parameter is gaussian sigma (in pixels) in Y direction.
Metric (m): Choose the metric used for block matching. Available metrics are cross-correlation (CC), cross-correlation with subtracted mean (CCSM), mean-square difference (MSD), mean reciprocal square difference (MRSD) and mutual information (MI). Default is cross-correlation
SubPixelAccuracy (spa): Metric extrema location will be refined up to the given accuracy. Default is 0.01
ConvergenceAccuracy (cva): Metric extrema will be refined up to the given accuracy. Default is 0.01
Validity Mask Lower Threshold (vmlt): Lower threshold to compute the validity mask. This mask will be the 4th output band.
Validity Mask Upper Threshold (vmut): Upper threshold to obtain a validity mask. This mask will be the 4th output band.
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
Example of use
ref: StereoFixed.png
sec: StereoMoving.png
out: FineRegistration.tif
erx: 2
ery: 2
mrx: 3
mry: 3
otbcli_FineRegistration -ref StereoFixed.png -sec StereoMoving.png -out FineRegistration.tif -erx 2 -ery 2 -mrx 3 -mry 3