MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ load() [2/2]

std::optional< ImageData > MayaFlux::IO::ImageReader::load ( const std::string &  path,
int  desired_channels = 4,
std::optional< Kakshya::Region >  region = std::nullopt 
)
static

Load image from file (static utility)

Parameters
pathImage file path
desired_channelsForce channel count (0 = keep original, 4 = RGBA)
regionOptional source-pixel rectangle with inclusive end coordinates
Returns
Image data or nullopt on failure

Definition at line 571 of file ImageReader.cpp.

574{
575 return load(std::filesystem::path(path), desired_channels, std::move(region));
576}
static std::optional< ImageData > load(const std::string &path, int desired_channels=4, std::optional< Kakshya::Region > region=std::nullopt)
Load image from file (static utility)

References load().

Referenced by MayaFlux::Kriya::ChimeraBuilder::from(), load(), load_texture(), and open().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: