Demosaic on Jetson AGX Orin

Hi, would like to utilize the Jetson AGX Orin’s image accelerator for demosaic/debayer a bayer image (8 bit - BGGR) to BGR (Currently we are using opencv implementation which utilize the CPU/GPU). I’ve tried to go over VPI API but got the impression that demosaic is not available. Is this correct? Is there any accelerator which support this? if so, Which API should I use?

Hi,
There is ISP engine in Orin and the software stack is Argus. If your source is Bayer sensors, we suggest go this route to use the hardware engine.

Another approach is to implement debayering through CUDA. You may refer to the CUDA code in

/usr/src/jetson_multimedia_api/argus/samples/cudaBayerDemosaic/CudaBayerDemosaicKernel.cu

and do implementation.

1 Like

Thank you DaneLLL, where can I find information (API, description, samples) of using Argus stack to debayer an image using ISP engine ?

Hi,
You can install the samples through SDKManager, or run the command on AGX Orin:

sudo apt-get install nvidia-l4t-jetson-multimedia-api

The samples are installed to

/usr/src/jetson_multimedia_api

Please run the sample and check the source code:

/usr/src/jetson_multimedia_api/argus/samples/cudaBayerDemosaic

1 Like

Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.