Skip to main content

ImageLoaderOptions

ImageLoaderOptions

Options for loading ImageData from a directory of image files.

#include <Image_Data_Loader.hpp>

Public Attributes

Name
std::string directory_path
std::set< std::string > file_extensions
std::string filename_pattern
bool sort_by_name
MediaData::DisplayFormat display_format
bool recursive_search

Public Attributes Documentation

variable directory_path

std::string directory_path = ".";

The directory containing the image files to load.

variable file_extensions

std::set< std::string > file_extensions = {".png", ".jpg", ".jpeg"};

Set of file extensions to include (e.g., {“.png”, “.jpg”, “.jpeg”}).

variable filename_pattern

std::string filename_pattern = "";

Optional regex pattern to search within filenames (e.g., “Ch1” to match files containing “Ch1”). Uses regex_search, so the pattern can match anywhere in the filename. If empty, all files with matching extensions are included.

variable sort_by_name

bool sort_by_name = true;

If true, files are sorted alphabetically by filename. If false, files are processed in filesystem order.

variable display_format

MediaData::DisplayFormat display_format = MediaData::DisplayFormat::Color;

The display format for loaded images (Gray or Color).