Unable to Resize and Zero pad image using dwDataConditoner APIs

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

Hi Team,
I am trying to preprocess the image for inferencing using dwDataConditioner APIs. I am trying to load an image using dwImageCuda for which I am targeting below operations -

  • Resizing the image to desired height and width.
  • Normalize the image for a given mean and std. deviation values.
  • Zero padding the image frame.

For normalization, I found that there’s a provision to set mean and std. deviation values using dwDataConditioner_initializeNew.
However for resizing and zero padding operation, there is no parameter available.
Please suggest a way to address this issue.
Thank you.

Dear @ankitm4,
Resizing the image to desired height and width

Desired size means size other than network input size? If it is network size, it is taken care by data conditioner module. Please see DNN sample code workflow for reference.

Zero padding is not possible with data conditioner module. Please do the zero padding of CUDA input buffer manually if needed.