set_visualizer
code_loader.leap_binder.set_visualizer
The leap_binder.set_visualizer
binding function points to Visualizer Function. In addition, it defines the visualizer_type
and name
for reference.
function
(VisualizerCallableInterface) This parameter points to the Visualizer Function mentioned above.
name
(str) with the given name of the input, e.g. image.
visualizer_type
(LeapDataType) This property sets the type of the data to be visualized by the visualizer.
heatmap_visualizer
(optional)
Callable[[npt.NDArray[np.float32]], npt.NDArray[np.float32]] This parameter points to a function that modifies the heatmap data before visualization.
Examples
Basic Usage
The decoder_classes pages contain additional, decoder specific, examples. Moreover, full script usage can be found in Integration Script.
Resize Image and Heatmap
When changing the original data shape in the visualizer function, we need to reshape the heatmap data that is projected. heatmap_visualizer
points to a function that modifies the heatmap data respectively. Consider the following example:
Guides
Full examples can be found in the Dataset Integration section of the following guides:
Last updated