How to read an camera image as CHW in Driveworks?

Please provide the following info:
Software Version
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
other

Target Operating System
Linux
QNX
other

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

SDK Manager Version
1.4.0.7363
other

Host Machine Version
native Ubuntu 18.04
other

Hello,
To infer my DNN models in driveworks api the input should be CHW as I understand. When I read a frame from camera, what is its layout CHW or HWC? If its not CHW how can i convert it?
I looked from official examples but quite didn’t understand it clearly.

Dear @kaltinok ,
Could you check dwImageProperties → DwImageFormat for input image? Have you checked our DNN samples?
Could you check file:///usr/local/driveworks-2.2-old/doc/nvsdk_html/image_mainsection.html and dwImage_copyConvert() function and see if it helps?

1 Like

Thanks!
Best Regards.