Skip to main content

OpenCVLoader

OpenCVLoader

OpenCV data loader implementation. More…

#include <OpenCVLoader.hpp>

Inherits from DataLoader

Public Functions

Name
virtual std::string getFormatId() const override
Get the format identifier.
virtual bool supportsDataType(DM_DataType data_type) const override
Check if this loader supports the given data type.
virtual LoadResult loadData(std::string const & file_path, DM_DataType data_type, nlohmann::json const & config) const override
Load data from image files using OpenCV.

Additional inherited members

Public Functions inherited from DataLoader

Name
virtual ~DataLoader() =default

Detailed Description

class OpenCVLoader;

OpenCV data loader implementation.

This loader supports loading various data types from image files using OpenCV. Currently supports:

  • MaskData from binary images (PNG, JPG, BMP, TIFF, etc.)

Public Functions Documentation

function getFormatId

virtual std::string getFormatId() const override

Get the format identifier.

Reimplements: DataLoader::getFormatId

function supportsDataType

virtual bool supportsDataType(
    DM_DataType data_type
) const override

Check if this loader supports the given data type.

Reimplements: DataLoader::supportsDataType

function loadData

virtual LoadResult loadData(
    std::string const & file_path,
    DM_DataType data_type,
    nlohmann::json const & config
) const override

Load data from image files using OpenCV.

Reimplements: DataLoader::loadData


Updated on 2026-11-13 at 20:25:40 +0000