Class slamcore::PanopticSegmentationRunnerInterface

class PanopticSegmentationRunnerInterface

Public Types

using PanopticLabelMapping = std::unordered_map<unsigned int, PanopticLabel>

Public Functions

virtual ~PanopticSegmentationRunnerInterface() = default
virtual std::unique_ptr<const PanopticSegmentationResultInterface> runInference(const ImageInterface &image) const = 0

Segment the passed image and store the result per pixel in result.


image[in] Image to segment.


Segmentation result, nullptr if inference failed.

virtual const PanopticLabelMapping &getLabelMapping() const = 0

Get the mapping of the inference result labels to PanopticLabels enum


the result of this may be cached so it should not change between calls


the mapping