dl::ChannelEncoder
dl::ChannelEncoder
Abstract base class for encoding geometry/image data into a tensor channel. More…
#include <ChannelEncoder.hpp>
Inherited by dl::ImageEncoder, dl::Line2DEncoder, dl::Mask2DEncoder, dl::Point2DEncoder
Public Functions
| Name | |
|---|---|
| virtual | ~ChannelEncoder() =default |
| virtual std::string | name() const =0 Human-readable name for UI / registry. |
| virtual std::string | inputTypeName() const =0 Which geometry type this encoder expects (e.g. “Point2D |
Detailed Description
class dl::ChannelEncoder;Abstract base class for encoding geometry/image data into a tensor channel.
Each encoder writes into a specified channel index of a pre-allocated B x C x H x W float tensor. The caller controls B and which batch_index to write into.
Public Functions Documentation
function ~ChannelEncoder
virtual ~ChannelEncoder() =defaultfunction name
virtual std::string name() const =0Human-readable name for UI / registry.
Reimplemented by: dl::ImageEncoder::name, dl::Line2DEncoder::name, dl::Mask2DEncoder::name, dl::Point2DEncoder::name
function inputTypeName
virtual std::string inputTypeName() const =0Which geometry type this encoder expects (e.g. “Point2D
Reimplemented by: dl::ImageEncoder::inputTypeName, dl::Line2DEncoder::inputTypeName, dl::Mask2DEncoder::inputTypeName, dl::Point2DEncoder::inputTypeName
Updated on 2026-11-13 at 20:25:42 +0000