Class slamcore::MapChannel2DInterface

class slamcore::MapChannel2DInterface : public ObjectInterface

Interface to a 2D map channel.

Public Types

using Ptr = std::shared_ptr<MapChannel2DInterface>
using CPtr = std::shared_ptr<const MapChannel2DInterface>

Public Functions

inline virtual ObjectType type() const

Type of the object.

virtual ~MapChannel2DInterface() = default
virtual MapChannelType getType() const = 0

Type of channel.

virtual ImageFormat getFormat() const = 0

Data format.

virtual std::size_t getWidth() const = 0

Number of cells in the horizontal dimension.

virtual std::size_t getHeight() const = 0

Number of cells in the vertical dimension.

virtual std::size_t getPitch() const = 0

Data row stride in bytes.

virtual std::size_t getBytesPerPixel() const = 0

Bytes per pixel.

virtual std::size_t getBufferSize() const = 0

Total buffer size in bytes.

virtual bool isValid() const = 0

Check if the map channel contains valid data.

virtual const uint8_t *getData() const = 0

Internal data buffer.

virtual ScalarT getValueMin() const = 0

Minimum valid value. Smaller values should be treated as unknown.

virtual ScalarT getValueMax() const = 0

Maximum valid value. Greater values should be treated as unknown.