File panoptic_segmentation_runner.hpp

Defines the Interface for the Panoptic Segmentation inference runner.

namespace slamcore

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel

Get information about the client library

class PanopticSegmentationRunnerInterface
#include <panoptic_segmentation_runner.hpp>

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