Class Visualizer

Clara Holoscan v0.4.0

Base Type

  • public nvidia::gxf::Codelet

class Visualizer : public nvidia::gxf::Codelet

OpenGL Visualization Codelet that combines segmentation output overlaid on video input.

This Codelet performs visualization of a segmentation model alpha blended with the original The window is displayed with GLFW and uses CUDA/OpenGL interopt propagate CUDA Tensors from the CUDA context to OpenGL. The final class color is rendered using a GLSL fragment shader to remap the class index to an RGBA LUT. The LUT can be configured inside the YAML for common class colors. In some cases the alpha component may be desired to be 0 (fully transparent) to prevent drawing over segmentation classes that are uninteresting.

Public Functions

gxf_result_t start() override

gxf_result_t tick() override

gxf_result_t stop() override

gxf_result_t registerInterface(gxf::Registrar *registrar) override

© Copyright 2022, NVIDIA. Last updated on Jun 28, 2023.