dwStereo_getDisparity() returned disparity 8bit or 16bit?

Hardware Platform: DRIVE AGX Xavier™ Developer Kit
Software Version: DRIVE Software 10
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: 1.3.1.7110

dwStereo_getDisparity() function says it returns disparity values in 16bit, but when I print the prop.format of the dwImageCUDA as shown below, it prints 1000 which is the enum for [DW_IMAGE_FORMAT_R_UINT8] and not [DW_IMAGE_FORMAT_R_UINT16]

below snippet is from sample_stereo_disparity code:
const dwImageCUDA *disparity, *confidence;
CHECK_DW_ERROR(dwStereo_getDisparity(&disparity, static_cast(side), m_stereoAlgorithm));
std::cout<<(int)disparity->prop.format<<“\n”;

Can you please let me know if something is setup wrong or what is the issue?

Thanks.

Dear @SagarS,
I could reproduce the issue. I am checking internally on this issue and update you.

Dear @SagarS ,
My apologies for late reply. The disparity map is 8 bit. It is documentation issue. We are working on it and update it.

1 Like