NVIDIA Holoscan SDK v2.0.0
Holoscan v2.0.0 Download PDF

Function holoscan::viz::ImageCudaArray

void holoscan::viz::ImageCudaArray(ImageFormat fmt, CUarray array)

Defines the image data for this layer, source is a CUDA array.

If the image has a alpha value it’s multiplied with the layer opacity.

If fmt is a depth format, the image will be interpreted as a depth image, and will be written to the depth buffer when rendering the color image from a separate invocation of Image*() for the same layer. This enables depth-compositing image layers with other Holoviz layers. Supported depth formats are: D16_UNORM, X8_D24_UNORM, D32_SFLOAT.

Parameters
  • fmt – image format

  • array – CUDA array

Previous Function holoscan::viz::ImageComponentMapping
Next Function holoscan::viz::ImageCudaDevice
© Copyright 2022-2024, NVIDIA. Last updated on Jun 4, 2024.