ImageMaskLoaderOptions
ImageMaskLoaderOptions
Options for loading 2D MaskData from binary image files. More…
#include <Mask_Data_Image.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | directory_path |
| std::string | file_pattern |
| std::string | filename_prefix |
| int | frame_number_padding |
| int | threshold_value |
| bool | invert_mask |
Detailed Description
struct ImageMaskLoaderOptions;Options for loading 2D MaskData from binary image files.
This loader expects a directory containing binary (black and white) image files where each file represents a mask for a specific frame. The filename should contain the frame number, optionally with a prefix.
Public Attributes Documentation
variable directory_path
std::string directory_path = ".";The directory containing the binary image files.
variable file_pattern
std::string file_pattern = "*.png";File pattern to match (e.g., “.png”, ”.jpg”, “*.bmp”).
variable filename_prefix
std::string filename_prefix = "";Optional prefix before the frame number in filenames (e.g., “mask_” for “mask_0001.png”).
variable frame_number_padding
int frame_number_padding = 0;Expected number of digits for frame numbers (e.g., 4 for “0001”). Set to 0 to disable padding requirements.
variable threshold_value
int threshold_value = 128;Pixel intensity threshold for converting grayscale to binary (0-255). Pixels >= threshold are considered mask pixels.
variable invert_mask
bool invert_mask = false;If true, inverts the mask (white becomes background, black becomes mask).
Updated on 2026-11-13 at 20:25:39 +0000