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

◆ read_normalized_at() [4/4]

MAYAFLUX_API double MayaFlux::Kakshya::read_normalized_at ( const DataVariant v,
Portal::Graphics::ImageFormat  format,
size_t  elem_index 
)

Read one element as a normalised double.

uint8 divided by 255. uint16 divided by 65535 unless the format is half-float, in which case the raw bits are returned uninterpreted. float returned unchanged.

Parameters
vSource variant.
formatPixel format governing the uint16 interpretation.
elem_indexElement index. Returns 0.0 when out of range.