ITK  6.0.0
Insight Toolkit
Public Types | Static Public Attributes | List of all members
itk::PixelTraits< TPixelType > Class Template Reference

#include <itkPixelTraits.h>

Detailed Description

template<typename TPixelType>
class itk::PixelTraits< TPixelType >

Traits for a pixel that define the dimension and component type.

PixelTraits determines the dimension and the component type of a pixel. The default implementation is suitable for all subclasses of itk::Array. This (will) include RGBPixel and RGBAPixel. Specialized versions of PixelTraits are defined for the standard scalar types.

Definition at line 45 of file itkPixelTraits.h.

Public Types

using ValueType = typename TPixelType::ValueType
 

Static Public Attributes

static constexpr unsigned int Dimension = TPixelType::Length
 

Member Typedef Documentation

◆ ValueType

template<typename TPixelType >
using itk::PixelTraits< TPixelType >::ValueType = typename TPixelType::ValueType

Type of a single component of a pixel.

Definition at line 52 of file itkPixelTraits.h.

Member Data Documentation

◆ Dimension

template<typename TPixelType >
constexpr unsigned int itk::PixelTraits< TPixelType >::Dimension = TPixelType::Length
staticconstexpr

Dimension of the pixel (range).

Definition at line 49 of file itkPixelTraits.h.


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