#include "Util/MathFunctions.H"
#include "Image/PixelsTypes.H"
#include <cmath>
#include <string>
Go to the source code of this file.
Defines | |
#define | PIX_FREE_MATH_FUNCTIONS(PIX, TPARAMS) |
#define | LIST_2(p1, p2) p1, p2 |
Typedefs | |
typedef double( | pix_helper::unary_math_func )(double) |
Functions | |
template<class P > | |
P | pix_helper::do_unary_func (P pixel, unary_math_func *func) |
PIX_FREE_MATH_FUNCTIONS(PixHyper < LIST_2(T, dim)>, LIST_2(class T, size_t dim)) std void | convertFromString (const std::string &str, PixRGB< byte > &val) |
PixRGB<byte> overload. | |
std::string | convertToString (const PixHSV< byte > &val) |
PixHSV<byte> overload. | |
void | convertFromString (const std::string &str, PixHSV< byte > &val) |
PixHSV<byte> overload. | |
std::string | convertToString (const PixDKL< byte > &val) |
PixDKL<byte> overload. | |
void | convertFromString (const std::string &str, PixDKL< byte > &val) |
PixDKL<byte> overload. |
Basic pixel types version 2.0
Definition in file Pixels.H.
void convertFromString | ( | const std::string & | str, | |
PixDKL< byte > & | val | |||
) |
PixDKL<byte> overload.
Format is "<byte>,<byte>,<byte>" for D, K, L
Definition at line 107 of file Pixels.C.
References PixDKL< T >::setD(), PixDKL< T >::setK(), and PixDKL< T >::setL().
void convertFromString | ( | const std::string & | str, | |
PixHSV< byte > & | val | |||
) |
PixHSV<byte> overload.
Format is "<byte>,<byte>,<byte>" for H, S, V
Definition at line 85 of file Pixels.C.
References PixHSV< T >::setH(), PixHSV< T >::setS(), and PixHSV< T >::setV().
PIX_FREE_MATH_FUNCTIONS (PixHyper<LIST_2(T, dim)>, LIST_2(class T, size_t dim)) std void convertFromString | ( | const std::string & | str, | |
PixRGB< byte > & | val | |||
) |
PixRGB<byte> overload.
Format is "<byte>,<byte>,<byte>" for R, G, B PixRGB<byte> overload
Format is "<byte>,<byte>,<byte>" for R, G, B, or "#RRGGBB" with the RR, GG and BB values in hexadecimal.
Definition at line 55 of file Pixels.C.
References PixRGB< T >::set(), PixRGB< T >::setBlue(), PixRGB< T >::setGreen(), and PixRGB< T >::setRed().
std::string convertToString | ( | const PixDKL< byte > & | val | ) |
PixDKL<byte> overload.
Format is "<byte>,<byte>,<byte>" for D, K, L
Definition at line 100 of file Pixels.C.
References PixDKL< T >::D(), PixDKL< T >::K(), and PixDKL< T >::L().
std::string convertToString | ( | const PixHSV< byte > & | val | ) |
PixHSV<byte> overload.
Format is "<byte>,<byte>,<byte>" for H, S, V
Definition at line 77 of file Pixels.C.
References PixHSV< T >::H(), PixHSV< T >::S(), and PixHSV< T >::V().