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

Value of an image pixel with arbitrary data type and 1 channel. More...

#include <Image.h>

Static Public Member Functions

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

Detailed Description

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

Value of an image pixel with arbitrary data type and 1 channel.

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

Member Function Documentation

◆ pixelValue()

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

◆ value() [1/2]

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

◆ value() [2/2]

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

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