SpatiumLib
Static Public Member Functions | List of all members
spatium::PixelValue< T, 3 > Struct Template Reference

Value of an image pixel with arbitrary data type and 3 channels. More...

#include <Image.h>

Static Public Member Functions

static std::array< T, 3 > pixelValue (const std::array< T, 1 > &input)
 
static std::array< T, 3 > value (const std::array< T, 3 > &input)
 
static std::array< T, 3 > pixelValue (const std::array< T, 4 > &input)
 

Detailed Description

template<typename T>
struct spatium::PixelValue< T, 3 >

Value of an image pixel with arbitrary data type and 3 channels.

This struct can be used to convert a pixel value of 1 or 4 channels to a 3-channel pixel value.

Member Function Documentation

◆ pixelValue() [1/2]

template<typename T >
static std::array<T, 3> spatium::PixelValue< T, 3 >::pixelValue ( const std::array< T, 1 > &  input)
inlinestatic

◆ pixelValue() [2/2]

template<typename T >
static std::array<T, 3> spatium::PixelValue< T, 3 >::pixelValue ( const std::array< T, 4 > &  input)
inlinestatic

◆ value()

template<typename T >
static std::array<T, 3> spatium::PixelValue< T, 3 >::value ( const std::array< T, 3 > &  input)
inlinestatic

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