|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API double MayaFlux::Kakshya::read_normalized_at | ( | const DataVariant & | v, |
| Portal::Graphics::ImageFormat | format, | ||
| const std::optional< DataDimension::ValueRange > & | range, | ||
| size_t | elem_index | ||
| ) |
Read one element as a normalised double, with optional range remapping.
Same as read_normalized_at, but if range is provided, the value is linearly remapped from [range.min, range.max] to [0.0, 1.0]. Values outside the range are clamped to 0.0 or 1.0.
| v | Source variant. |
| format | Pixel format governing the uint16 interpretation. |
| range | Optional value range for remapping. |
| elem_index | Element index. Returns 0.0 when out of range. |