34#ifndef VP_COLOR_GETTER_H
35#define VP_COLOR_GETTER_H
37#include <visp3/core/vpConfig.h>
38#include <visp3/core/vpHSV.h>
39#include <visp3/core/vpRGBa.h>
51#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
61 template <
typename ArithmeticType,
bool useFullScale >
73 template <
typename ArithmeticType,
bool useFullScale >
94#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
96template<
typename ArithmeticType,
bool useFullScale>
103template<
typename ArithmeticType,
bool useFullScale>
110template<
typename ArithmeticType,
bool useFullScale>
117template<
typename ArithmeticType,
bool useFullScale>
124template<
typename ArithmeticType,
bool useFullScale>
131template<
typename ArithmeticType,
bool useFullScale>
Helper class that permits to get a channel of a color type by its index instead of its name.
static const unsigned char & get(const vpRGBa &col)
Getter for a vpRGBA pixel.
static ArithmeticType & get(vpHSV< ArithmeticType, useFullScale > &col)
Setter for a channel of a HSV pixel.
static unsigned char & get(vpRGBa &col)
Setter for a vpRGBa pixel.
static const ArithmeticType & get(const vpHSV< ArithmeticType, useFullScale > &col)
Getter for a channel of a HSV pixel.
Class implementing the HSV pixel format.
unsigned char B
Blue component.
unsigned char R
Red component.
unsigned char G
Green component.
unsigned char A
Additional component.