Clara Holoscan v0.3.0
1.0

Class Visualizer

class Visualizer : public gxf::Codelet

OpenGL Visualization Codelet that combines segmentation output overlayed 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 propogate 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.