Into

Modules

Documentation

classPiiImage::IntegerTraits

#include <PiiImageTraits.h>

Traits for integer-valued images.

Description

Static public member functions

template<class U>
static T
(
  • U value
)
template<class U>
static T
(
  • U value
)
static T
( )

Returns the maximum value of a color channel.

template<class U>
static U
(
  • T value
)
template<class U>
static U
(
  • T value
)

Function details

  • template<class U>

    static T fromFloat

    (
    • U value
    )
    [inline, static]
  • template<class U>

    static T fromInt

    (
    • U value
    )
    [inline, static]
  • static T max

    ()
    [inline, static]

    Returns the maximum value of a color channel.

    The maximum channel value is 255 for all integer types and 1.0 for floating-point types.

  • template<class U>

    static U toFloat

    (
    • T value
    )
    [inline, static]
  • template<class U>

    static U toInt

    (
    • T value
    )
    [inline, static]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.