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

◆ read_normalized_at() [2/2]

MAYAFLUX_API double MayaFlux::Kakshya::read_normalized_at ( const DataVariant &  v,
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.

Definition at line 217 of file PixelStorage.cpp.

218{
219 return read_normalized_at(v, format, std::nullopt, elem_index);
220}
bool format
double read_normalized_at(const DataVariant &v, ImageFormat format, const std::optional< DataDimension::ValueRange > &range, size_t elem_index)
Read one element as a normalised double, with optional range remapping.

References format, and read_normalized_at().

+ Here is the call graph for this function: