#include <DeepSample.h>
Public Member Functions | |
DeepLightSample (const ChannelMap &map) | |
Initialise based on a ChannelMap. Set all samples to zero. | |
DeepLightSample (const ChannelMap &map, const DeepPixel &pixel, int sample, bool fetchOrdered=false) | |
bool | operator== (DeepLightSample &other) |
float & | operator() (const ChannelMap &map, Channel z) |
access the sample for a particular channel | |
float | operator() (const ChannelMap &map, Channel z) const |
access the sample for a particular channel | |
SampleContainer::iterator | begin () |
SampleContainer::iterator | end () |
SampleContainer::const_iterator | begin () const |
SampleContainer::const_iterator | end () const |
size_t | size () |
get number of samples | |
Lightweight helper class representing a container of deep sample, one element per channel in a set. The sample value is represented in a single precision floating-point type.
|
inline |
Initialise based on a sample from a DeepPixel. If fetchOrdered is true it will use getOrderedSample, otherwise getUnorderedSample.
References DD::Image::DeepPixel::channels(), DD::Image::ChannelMap::contains(), DD::Image::DeepPixel::getOrderedSample(), DD::Image::DeepPixel::getUnorderedSample(), and DD::Image::ChannelMap::size().
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |