StereoBM
Objective-C
@interface StereoBM : StereoMatcher
Swift
class StereoBM : StereoMatcher
Class for computing stereo correspondence using the block matching algorithm, introduced and contributed to OpenCV by K. Konolige.
Member of Calib3d
-
Declaration
Objective-C
@property (class, readonly) int PREFILTER_NORMALIZED_RESPONSE
Swift
class var PREFILTER_NORMALIZED_RESPONSE: Int32 { get }
-
Declaration
Objective-C
@property (class, readonly) int PREFILTER_XSOBEL
Swift
class var PREFILTER_XSOBEL: Int32 { get }
-
Creates StereoBM object
Declaration
Objective-C
+ (nonnull StereoBM *)create:(int)numDisparities blockSize:(int)blockSize;
Swift
class func create(numDisparities: Int32, blockSize: Int32) -> StereoBM
Parameters
numDisparities
the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity.
blockSize
the linear size of the blocks compared by the algorithm. The size should be odd (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence.
The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.
-
Creates StereoBM object
Declaration
Objective-C
+ (nonnull StereoBM *)create:(int)numDisparities;
Swift
class func create(numDisparities: Int32) -> StereoBM
Parameters
numDisparities
the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence.
The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.
-
Creates StereoBM object
disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity. (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence. The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.
Declaration
Objective-C
+ (nonnull StereoBM *)create;
Swift
class func create() -> StereoBM
-
Declaration
Objective-C
- (int)getPreFilterCap NS_SWIFT_NAME(getPreFilterCap());
Swift
func getPreFilterCap() -> Int32
-
Declaration
Objective-C
- (int)getPreFilterSize NS_SWIFT_NAME(getPreFilterSize());
Swift
func getPreFilterSize() -> Int32
-
Declaration
Objective-C
- (int)getPreFilterType NS_SWIFT_NAME(getPreFilterType());
Swift
func getPreFilterType() -> Int32
-
Declaration
Objective-C
- (int)getSmallerBlockSize NS_SWIFT_NAME(getSmallerBlockSize());
Swift
func getSmallerBlockSize() -> Int32
-
Declaration
Objective-C
- (int)getTextureThreshold NS_SWIFT_NAME(getTextureThreshold());
Swift
func getTextureThreshold() -> Int32
-
Declaration
Objective-C
- (int)getUniquenessRatio NS_SWIFT_NAME(getUniquenessRatio());
Swift
func getUniquenessRatio() -> Int32
-
Declaration
Objective-C
- (void)setPreFilterCap:(int)preFilterCap NS_SWIFT_NAME(setPreFilterCap(preFilterCap:));
Swift
func setPreFilterCap(preFilterCap: Int32)
-
Declaration
Objective-C
- (void)setPreFilterSize:(int)preFilterSize NS_SWIFT_NAME(setPreFilterSize(preFilterSize:));
Swift
func setPreFilterSize(preFilterSize: Int32)
-
Declaration
Objective-C
- (void)setPreFilterType:(int)preFilterType NS_SWIFT_NAME(setPreFilterType(preFilterType:));
Swift
func setPreFilterType(preFilterType: Int32)
-
Declaration
Objective-C
- (void)setSmallerBlockSize:(int)blockSize NS_SWIFT_NAME(setSmallerBlockSize(blockSize:));
Swift
func setSmallerBlockSize(blockSize: Int32)
-
Declaration
Objective-C
- (void)setTextureThreshold:(int)textureThreshold NS_SWIFT_NAME(setTextureThreshold(textureThreshold:));
Swift
func setTextureThreshold(textureThreshold: Int32)
-
Declaration
Objective-C
- (void)setUniquenessRatio:(int)uniquenessRatio NS_SWIFT_NAME(setUniquenessRatio(uniquenessRatio:));
Swift
func setUniquenessRatio(uniquenessRatio: Int32)