50 #ifndef NV_VPI_ALGORITHMS_STEREO_DISPARITY_H
51 #define NV_VPI_ALGORITHMS_STEREO_DISPARITY_H
59 #include "../Export.h"
60 #include "../ImageFormat.h"
61 #include "../Status.h"
struct VPIImageImpl * VPIImage
A handle to an image.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
int32_t p2Alpha
Alpha is used to enable adaptive large penalty (adaptive P2) feature.
int32_t p1
Penalty on disparity changes of +/- 1 between neighbor pixels.
int32_t maxDisparity
Maximum disparity for matching search.
float uniqueness
Uniqueness ratio, in [0, 1] range, is a margin by which best cost value should win over the second be...
VPIStereoDisparityConfidenceType confidenceType
Computation type to produce the confidence output.
int32_t windowSize
Represents the median filter size on OFA+PVA+VIC backend or census transform window size (other backe...
int32_t minDisparity
Minimum possible disparity value.
int32_t quality
Ignored, do not use.
int32_t confidenceThreshold
Confidence threshold above which disparity values are considered valid.
int32_t downscaleFactor
Output's downscale factor with respect to the input's resolution.
int32_t p2
Penalty on disparity changes of more than 1 between neighbor pixels.
int8_t numPasses
Number of passes in memory-efficient semi-global matching (eSGM) computation.
int32_t maxDisparity
Maximum disparity for matching search.
int8_t includeDiagonals
Include diagonals or oblique paths in semi-global matching (SGM) computation.
VPIStatus vpiInitStereoDisparityEstimatorCreationParams(VPIStereoDisparityEstimatorCreationParams *params)
Initializes VPIStereoDisparityEstimatorCreationParams with default values.
VPIStatus vpiCreateStereoDisparityEstimator(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIImageFormat inputFormat, const VPIStereoDisparityEstimatorCreationParams *params, VPIPayload *payload)
Creates payload for vpiSubmitStereoDisparityEstimator.
VPIStatus vpiInitStereoDisparityEstimatorParams(VPIStereoDisparityEstimatorParams *params)
Initializes VPIStereoDisparityEstimatorParams with default values.
VPIStereoDisparityConfidenceType
Defines the way the confidence values are computed.
VPIStatus vpiSubmitStereoDisparityEstimator(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage left, VPIImage right, VPIImage disparity, VPIImage confidenceMap, const VPIStereoDisparityEstimatorParams *params)
Runs stereo processing on a pair of images and outputs a disparity map.
@ VPI_STEREO_CONFIDENCE_INFERENCE
The confidence value of a pixel is on a 0:UINT16_MAX scale, mapping from 0% to 100%.
@ VPI_STEREO_CONFIDENCE_RELATIVE
The U16 confidence value of a pixel is given by: [ 1 - abs(D_lr - D_rl) / D_lr ] * 0xFFFF.
@ VPI_STEREO_CONFIDENCE_ABSOLUTE
The U16 confidence value of a pixel is given by: [ 1 - abs(D_lr - D_rl) / MAX_DISP ] * 0xFFFF.
Structure that defines the parameters for vpiCreateStereoDisparityEstimator.
Structure that defines the parameters for vpiSubmitStereoDisparityEstimator.
struct VPIStreamImpl * VPIStream
A handle to a stream.