oa::FnImage::decodeFile

Stateless still-image codec boundaries. Decode uploads one normalized Float32 NCHW image through the active engine. Encode and saveFile are explicit synchronous host boundaries which complete and read back their semantic image input.

Function Documentation

oa::Result<Image> oa::FnImage::decodeFile( const oa::Path & inPath, ImageFormat inFormat = ImageFormat::Rgb )
Stateless still-image codec boundaries. Decode uploads one normalized Float32 NCHW image through the active engine. Encode and saveFile are explicit synchronous host boundaries which complete and read back their semantic image input.

Parameters

inPath
const oa::Path &

inFormat
ImageFormat

Default: ImageFormat::Rgb

Returns

oa::Result<Image>

The declared return value.

Examples