iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::pixel_traits< PixType, true > Struct Template Reference

#include <nrt/Core/Typing/PixelTraits.H>

template<class PixType>
struct nrt::pixel_traits< PixType, true >

This specialization of pixel_traits shows up when PixType is indeed a Pixel type.

Definition at line 72 of file PixelTraits.H.

Public Types

typedef PixType::PODType pod_type
 What is the POD type stored within this pixel?
 

Static Public Attributes

static const bool is_pixel = true
 Does this type actually derive from PixelBase?
 
static const std::size_t num_channels = PixType::numChannels
 How many channels does this Pixel type have?
 
static const bool is_single_channel = (num_channels == 1) ? true : false
 Is this a single-channel Pixel? More...
 
static const bool is_multi_channel = (num_channels > 1) ? true : false
 Is this a multi-channel Pixel? More...
 
static const bool has_extra_data = (sizeof(PixType) > sizeof(pod_type)*num_channels) ? true : false
 Does this Pixel type have extra data associated with it? More...
 
static const bool has_alpha = std::is_base_of<PixelWithAlpha<PixType>,PixType>::value
 Does this Pixel type have an alpha channel?
 

Member Data Documentation

template<class PixType >
const bool nrt::pixel_traits< PixType, true >::is_single_channel = (num_channels == 1) ? true : false
static

Is this a single-channel Pixel?

This is equivalent to pixel_traits<T>::num_channels == 1

Definition at line 85 of file PixelTraits.H.

template<class PixType >
const bool nrt::pixel_traits< PixType, true >::is_multi_channel = (num_channels > 1) ? true : false
static

Is this a multi-channel Pixel?

This is equivalent to pixel_traits<T>::num_channels != 1

Definition at line 89 of file PixelTraits.H.

template<class PixType >
const bool nrt::pixel_traits< PixType, true >::has_extra_data = (sizeof(PixType) > sizeof(pod_type)*num_channels) ? true : false
static

Does this Pixel type have extra data associated with it?

e.g. PixRGBD or PixRGBA

Definition at line 93 of file PixelTraits.H.


The documentation for this struct was generated from the following file: