4.7.3 Fine Registration

Estimate disparity map between two images.

Detailed description

Estimate disparity map between two images. Output image contain x offset, y offset and metric value.

Parameters

This section describes in details the parameters available for this application. Table 4.108, page 676 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is FineRegistration.





Parameter key

Parameter type

Parameter description




ref

Input image

Reference Image

sec

Input image

Secondary Image

out

Output image

Output Image

erx

Int

Exploration Radius X

ery

Int

Exploration Radius Y

mrx

Int

Metric Radius X

mry

Int

Metric Radius Y

w

Input image

Image To Warp

wo

Output image

Output Warped Image

cox

Float

Coarse Offset X

coy

Float

Coarse Offset Y

ssrx

Float

Sub-Sampling Rate X

ssry

Float

Sub-Sampling Rate Y

rgsx

Float

Reference Gaussian Smoothing X

rgsy

Float

Reference Gaussian Smoothing Y

sgsx

Float

Secondary Gaussian Smoothing X

sgsy

Float

Secondary Gaussian Smoothing Y

m

String

Metric

spa

Float

SubPixelAccuracy

vmlt

Float

Validity Mask Lower Threshold

vmut

Float

Validity Mask Upper Threshold

ram

Int

Available RAM (Mb)

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.108: Parameters table for Fine Registration.

Example

To run this example in command-line, use the following:

otbcli_FineRegistration -ref StereoFixed.png -sec StereoMoving.png -out FineRegistration.tif -erx 2 -ery 2 -mrx 3 -mry 3

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the FineRegistration application 
FineRegistration = otbApplication.Registry.CreateApplication("FineRegistration") 
 
# The following lines set all the application parameters: 
FineRegistration.SetParameterString("ref", "StereoFixed.png") 
 
FineRegistration.SetParameterString("sec", "StereoMoving.png") 
 
FineRegistration.SetParameterString("out", "FineRegistration.tif") 
 
FineRegistration.SetParameterInt("erx", 2) 
 
FineRegistration.SetParameterInt("ery", 2) 
 
FineRegistration.SetParameterInt("mrx", 3) 
 
FineRegistration.SetParameterInt("mry", 3) 
 
# The following line execute the application 
FineRegistration.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.