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.
- Parameters
image – [in] Image to segment.
- Returns
Segmentation result, nullptr if inference failed.
-
virtual const PanopticLabelMapping &getLabelMapping() const = 0
Get the mapping of the inference result labels to PanopticLabels enum
Note
the result of this may be cached so it should not change between calls
- Returns
the mapping
-
using PanopticLabelMapping = std::unordered_map<unsigned int, PanopticLabel>