CSVMaskRLELoaderOptions
CSVMaskRLELoaderOptions
Options for loading MaskData from a single CSV file using Run-Length Encoding. More…
#include <Mask_Data_CSV.hpp>
Public Functions
| Name | |
|---|---|
| std::string | getDelimiter() const |
| std::string | getRLEDelimiter() const |
| bool | getHasHeader() const |
| std::string | getHeaderIdentifier() const |
Public Attributes
| Name | |
|---|---|
| std::string | filepath Path to the CSV file (required). |
| std::optional< std::string > | delimiter Column delimiter (default: “,”). |
| std::optional< std::string > | rle_delimiter Delimiter within RLE data (default: “,”). |
| std::optional< bool > | has_header Whether file has a header row (default: true). |
| std::optional< std::string > | header_identifier String to identify header row (default: “Frame”). |
| std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > | height Image height in pixels. |
| std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > | width Image width in pixels. |
Detailed Description
struct CSVMaskRLELoaderOptions;Options for loading MaskData from a single CSV file using Run-Length Encoding.
Note: This struct conforms to ValidLoaderOptions concept.
The CSV file should have a frame column followed by a quoted RLE-encoded string of (y, x_start, length) triplets representing horizontal pixel runs.
Uses reflect-cpp for automatic JSON serialization/deserialization. Optional fields can be omitted from JSON and will use default values.
Public Functions Documentation
function getDelimiter
inline std::string getDelimiter() constfunction getRLEDelimiter
inline std::string getRLEDelimiter() constfunction getHasHeader
inline bool getHasHeader() constfunction getHeaderIdentifier
inline std::string getHeaderIdentifier() constPublic Attributes Documentation
variable filepath
std::string filepath;Path to the CSV file (required).
variable delimiter
std::optional< std::string > delimiter;Column delimiter (default: “,”).
variable rle_delimiter
std::optional< std::string > rle_delimiter;Delimiter within RLE data (default: “,”).
variable has_header
std::optional< bool > has_header;Whether file has a header row (default: true).
variable header_identifier
std::optional< std::string > header_identifier;String to identify header row (default: “Frame”).
variable height
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > height;Image height in pixels.
variable width
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > width;Image width in pixels.
Updated on 2026-11-13 at 20:25:39 +0000