Package boofcv.alg.disparity.sgm
Class SgmStereoDisparity<T extends ImageBase<T>,C extends ImageBase<C>>
java.lang.Object
boofcv.alg.disparity.sgm.SgmStereoDisparity<T,C>
- Direct Known Subclasses:
SgmStereoDisparityCensus
,SgmStereoDisparityError
public abstract class SgmStereoDisparity<T extends ImageBase<T>,C extends ImageBase<C>>
extends Object
Base class for SGM stereo implementations. It combines the cost computation, cost aggregation, and disparity
selector steps. Sub-pixel can be optionally computed afterwards.
NOTE: [1] suggests applying a median filter. This is not done by any of this class' children.
[1] Hirschmuller, Heiko. "Stereo processing by semiglobal matching and mutual information." IEEE Transactions on pattern analysis and machine intelligence 30.2 (2007): 328-341.
-
Field Summary
Modifier and TypeFieldDescriptionprotected SgmCostAggregation
protected GrayU8
protected int
protected int
protected SgmHelper
protected GrayF32
protected SgmDisparitySelector
protected SgmDisparityCost<C>
-
Constructor Summary
ModifierConstructorDescriptionprotected
SgmStereoDisparity
(SgmDisparityCost<C> sgmCost, SgmDisparitySelector selector) -
Method Summary
-
Field Details
-
disparityMin
protected int disparityMin -
disparityRange
protected int disparityRange -
sgmCost
-
aggregation
-
selector
-
helper
-
costYXD
-
disparity
-
score
-
-
Constructor Details
-
SgmStereoDisparity
-
-
Method Details
-
process
Computes disparity- Parameters:
left
- (Input) left rectified stereo imageright
- (Input) right rectified stereo image
-
subpixel
-
saveScore
public void saveScore()Extracts the score from the cost volumn -
getInvalidDisparity
public int getInvalidDisparity()
-