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

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

#include <Image.h>

Static Public Member Functions

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

Detailed Description

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

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

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

Member Function Documentation

◆ pixelValue() [1/2]

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

◆ pixelValue() [2/2]

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

◆ value()

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

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