Method¶
The method to use for stereo matching.
Format
String |
|
Uses a variant of the PatchMatch algorithm. |
|
Uses the PatchMatch2 algorithm. |
Default
XR30 |
|
XR36 |
|
others |
|
Note
Only the PatchMatch2 method is supported on CR-series cameras.
Note
XR-series cameras still use the deprecated matching methods SgmSinglePass and Correlation.
PatchMatch Stereo Matching
PatchMatch is a randomized algorithm for finding correspondences between image patches. The matching procedure can be outlined as follows:
The matching starts by sampling random correspondences, i.e. we fill the disparity map with random values:
A certain percentage of these correspondences will be close to correct:
Then we try to propagate these correct samples to their still incorrect neighbors:
The propagation of disparity values is done iteratively in multiple directions. The local intensity differences between an image patch around each pixel provides the measure to distinguish between good and bad samples. Good samples can spread out over worse samples, but a bad sample will not propagate to a better associated neighbor pixel and the neighbors disparity value which yields a lower local patch difference will be kept instead.
The procedure fills the disparity map with a high percentage of correctly associated pixels even after the first iteration, i.e. propagating the values in all directions once. To improve the probability to hit small, disconnected surface patches it is possible to add more iterations using the Iterations parameter.
PatchMatch2 Stereo Matching
PatchMatch2 is in improved variant of PatchMatch combining the robustness and ease of use of PatchMatch with a precise subpixel interpolation similar to the Sequence Correlation method.
In contrast to the original PatchMatch method it only has fewer parameters and uses CorrespondenceThreshold instead of UniquenessRatio for filtering unreliable data.


