vpiSubmitStereoDisparityEstimator giving zero disparity image when confidence map flag is passed

I am trying to run vpiSubmitStereoDisparityEstimator using given official reference link.

I am running this using VPI_BACKEND_CUDA. I am getting correct disparity image when I pass confidence map flag as NULL. But when I create and pass a VPIIMAGE for confidence map through vpiSubmitStereoDisparityEstimator function, I am getting black disparity Image.

Working piece of code: [gives correct disparity image]

VPIIMAGE confidence = NULL;
vpiSubmitStereoDisparityEstimator(stream, VPI_BACKEND_CUDA, stereo, left, right, disparity, confidence, &params);

Non working piece of code:(gives black(zero) disparity image)

VPIIMAGE confidence;
vpiImageCreate(w, h,VPI_IMAGE_FORMAT_U16, 0, &confidence);
vpiSubmitStereoDisparityEstimator(stream,VPI_BACKEND_CUDA, stereo, left, right, disparity, confidence, &params);

The dimensions and type of stereo, left, right, disparity and confidence images are same.I have also mentioned by system details below. Thanks in advance.

NVIDIA JETSON NANO
L4T 32.5.1 [JetPack 4.5.1]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.201-tegra
CUDA 10.2.89
CUDA Architcture: 5.3
OpenCV version: 4.1.1
Opencv Cuda: NO
CUDNN: 8.0.0.180
VPI: ii libnvvpi1 1.0.15 arm64
Vulcan: 1.2.70

You might get better help with this on the Jetson Nano forum.

1 Like

Okay. Thanks for your reply.