Runs the stereo pipeline and computes disparity map on PVA.
Runs the stereo pipeline's individual steps and computes disparity map on PVA.
Data Structures | |
struct | dwStereoPVAParams |
Configuration parameters for a Stereo algorithm. More... | |
Typedefs | |
typedef struct dwStereoPVAObject * | dwStereoPVAHandle_t |
A pointer to the handle representing a stereo algorithm on PVA. More... | |
Enumerations | |
enum | dwStereoPVAMode { DW_STEREO_PVA_MODE_MEDIUM_QUALITY = 0, DW_STEREO_PVA_MODE_LOW_QUALITY = 1, DW_STEREO_PVA_MODE_HIGH_QUALITY = 2 } |
Stereo computation modes. More... | |
enum | dwStereoStage { DW_STEREO_STAGE_CPU_SYNC_CONVERT_DATA = 0, DW_STEREO_STAGE_VIC_ASYNC_CONVERT_DATA = 1, DW_STEREO_STAGE_PVA_ASYNC_PREPROCESS = 2, DW_STEREO_STAGE_NVENC_ASYNC_PROCESS = 3, DW_STEREO_STAGE_PVA_ASYNC_POSTPROCESS = 4, DW_STEREO_STAGE_GPU_ASYNC_POSTPROCESS = 5, DW_STEREO_STAGE_CPU_SYNC_PROCESS = 6 } |
Defines stages of the pipleine. More... | |
struct dwStereoPVAParams |
Data Fields | ||
---|---|---|
dwStereoPVAMode | estimationMode | Estimation mode that determines the speed and quality of stereo algorithm. |
dwProcessorType | processorNVENC |
Specifies the processor type for the stages of the pipeline which run on NVENC. Supported options are DW_PROCESSOR_TYPE_NVENC_0, DW_PROCESSOR_TYPE_NVENC_1 |
dwProcessorType | processorPVA |
Specifies the processor type for the stages of the pipeline which run on PVA. Supported options are DW_PROCESSOR_TYPE_PVA_0, DW_PROCESSOR_TYPE_PVA_1 |
typedef struct dwStereoPVAObject* dwStereoPVAHandle_t |
A pointer to the handle representing a stereo algorithm on PVA.
This object allows the computation of a disparity map given two rectified stereo images
Definition at line 65 of file StereoPVA.h.
enum dwStereoPVAMode |
Stereo computation modes.
Definition at line 70 of file StereoPVA.h.
enum dwStereoStage |
Defines stages of the pipleine.
Definition at line 58 of file StereoPVA_processpipeline.h.
DW_API_PUBLIC dwStatus dwStereoPVA_bindInput | ( | dwImageHandle_t | left, |
dwImageHandle_t | right, | ||
dwStereoPVAHandle_t | obj | ||
) |
Binds the input images to stereo module.
[in] | left | Left image of format DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR |
[in] | right | Right image of format DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR |
[in] | obj | Specifies the StereoPVA handle. |
DW_API_PUBLIC dwStatus dwStereoPVA_bindOutput | ( | dwImageHandle_t | disparity, |
dwImageHandle_t | confidence, | ||
dwStereoPVAHandle_t | obj | ||
) |
Binds the output images to stereo module.
[in] | disparity | Disparity image of format DW_IMAGE_FORMAT_R_INT16 |
[in] | confidence | Confidence image of format DW_IMAGE_FORMAT_R_UINT16 |
[in] | obj | Specifies the StereoPVA handle. |
DW_API_PUBLIC dwStatus dwStereoPVA_computeDisparity | ( | dwImageHandle_t | disparityMap, |
dwImageHandle_t | confidenceMap, | ||
const dwImageHandle_t | leftImage, | ||
const dwImageHandle_t | rightImage, | ||
dwStereoPVAHandle_t | obj | ||
) |
Executes the full pipeline and computes disparity map.
The pipeline runs on the following engines:
[out] | disparityMap | Disparity map |
[out] | confidenceMap | Confidence map |
[in] | leftImage | Left image. Expected YUV |
[in] | rightImage | The left 8 bit rectified image pyramid. |
[in] | obj | The stereo algorithm handle. |
DW_API_PUBLIC dwStatus dwStereoPVA_getConfidenceImageProperties | ( | dwImageProperties * | props, |
dwStereoPVAHandle_t | obj | ||
) |
Get output confidence image properties.
[out] | props | |
[in] | obj |
DW_API_PUBLIC dwStatus dwStereoPVA_getCUDAStream | ( | cudaStream_t * | stream, |
dwStereoPVAHandle_t | obj | ||
) |
Gets CUDA stream used by the stereo algorithm.
[out] | stream | The CUDA stream currently used by the stereo algorithm. |
[in] | obj | The stereo algorithm handle. |
DW_API_PUBLIC dwStatus dwStereoPVA_getDisparityImageProperties | ( | dwImageProperties * | props, |
dwStereoPVAHandle_t | obj | ||
) |
Get output disparity image properties.
[out] | props | |
[in] | obj |
DW_API_PUBLIC dwStatus dwStereoPVA_initialize | ( | dwStereoPVAHandle_t * | obj, |
uint32_t | width, | ||
uint32_t | height, | ||
const dwStereoPVAParams * | stereoParams, | ||
dwContextHandle_t | ctx | ||
) |
Initializes the stereo algorithm with the parameters.
[out] | obj | A pointer to the stereo algorithm on PVA. |
[in] | width | The width of one input image. |
[in] | height | The height of one input image. |
[in] | stereoParams | A pointer to the configuration of the stereo algorithm. |
[in] | ctx | the handle to DW context. |
DW_API_PUBLIC dwStatus dwStereoPVA_initParams | ( | dwStereoPVAParams * | stereoParams | ) |
Initializes the StereoPVA parameters.
[out] | stereoParams | Parameters to be initialised with default values. |
DW_API_PUBLIC dwStatus dwStereoPVA_process | ( | dwStereoStage | stage, |
dwStereoPVAHandle_t | obj | ||
) |
Executes a given stage of the pipeline.
[in] | stage | Stage to execute. |
[in] | obj | Specifies the StereoPVA handle. |
DW_API_PUBLIC dwStatus dwStereoPVA_release | ( | dwStereoPVAHandle_t | obj | ) |
Releases the stereo algorithm.
This method releases all resources associated with a stereo algorithm.
[in] | obj | The object handle to be released. |
DW_API_PUBLIC dwStatus dwStereoPVA_reset | ( | dwStereoPVAHandle_t | obj | ) |
Resets the Stereo module.
[in] | obj | Specifies the stereo handle to reset. |
DW_API_PUBLIC dwStatus dwStereoPVA_setCUDAStream | ( | cudaStream_t | stream, |
dwStereoPVAHandle_t | obj | ||
) |
Sets CUDA stream used by the stereo algorithm.
[in] | stream | The CUDA stream. |
[in] | obj | The stereo algorithm handle. |