HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathColorAlgo.h File Reference
#include "ImathNamespace.h"
#include "ImathExport.h"
#include "ImathColor.h"
#include "ImathMath.h"
+ Include dependency graph for ImathColorAlgo.h:

Go to the source code of this file.

Functions

IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
IMATH_EXPORT Vec3< double > 
hsv2rgb_d (const Vec3< double > &hsv) IMATH_NOEXCEPT
 Convert 3-channel hsv to rgb. Non-templated helper routine. More...
 
IMATH_EXPORT Color4< double > hsv2rgb_d (const Color4< double > &hsv) IMATH_NOEXCEPT
 Convert 4-channel hsv to rgb (with alpha). Non-templated helper routine. More...
 
IMATH_EXPORT Vec3< double > rgb2hsv_d (const Vec3< double > &rgb) IMATH_NOEXCEPT
 Convert 3-channel rgb to hsv. Non-templated helper routine. More...
 
IMATH_EXPORT Color4< double > rgb2hsv_d (const Color4< double > &rgb) IMATH_NOEXCEPT
 Convert 4-channel rgb to hsv. Non-templated helper routine. More...
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Vec3< T > 
hsv2rgb (const Vec3< T > &hsv) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Color4< T > 
hsv2rgb (const Color4< T > &hsv) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Vec3< T > 
rgb2hsv (const Vec3< T > &rgb) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Color4< T > 
rgb2hsv (const Color4< T > &rgb) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 PackedColor 
rgb2packed (const Vec3< T > &c) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 PackedColor 
rgb2packed (const Color4< T > &c) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE void packed2rgb (PackedColor packed, Vec3< T > &out) IMATH_NOEXCEPT
 
template<class T >
IMATH_HOSTDEVICE void packed2rgb (PackedColor packed, Color4< T > &out) IMATH_NOEXCEPT
 

Function Documentation

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Vec3<T> hsv2rgb ( const Vec3< T > &  hsv)

Convert 3-channel hsv to rgb.

Definition at line 48 of file ImathColorAlgo.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Color4<T> hsv2rgb ( const Color4< T > &  hsv)

Convert 4-channel hsv to rgb (with alpha).

Definition at line 74 of file ImathColorAlgo.h.

IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_EXPORT Vec3<double> hsv2rgb_d ( const Vec3< double > &  hsv)

Convert 3-channel hsv to rgb. Non-templated helper routine.

IMATH_EXPORT Color4<double> hsv2rgb_d ( const Color4< double > &  hsv)

Convert 4-channel hsv to rgb (with alpha). Non-templated helper routine.

template<class T >
IMATH_HOSTDEVICE void packed2rgb ( PackedColor  packed,
Vec3< T > &  out 
)

Convert PackedColor to 3-channel rgb. Return the result in the out parameter.

Definition at line 209 of file ImathColorAlgo.h.

template<class T >
IMATH_HOSTDEVICE void packed2rgb ( PackedColor  packed,
Color4< T > &  out 
)

Convert PackedColor to 4-channel rgb (with alpha). Return the result in the out parameter.

Definition at line 234 of file ImathColorAlgo.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Vec3<T> rgb2hsv ( const Vec3< T > &  rgb)

Convert 3-channel rgb to hsv.

Definition at line 102 of file ImathColorAlgo.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Color4<T> rgb2hsv ( const Color4< T > &  rgb)

Convert 4-channel rgb to hsv (with alpha).

Definition at line 128 of file ImathColorAlgo.h.

IMATH_EXPORT Vec3<double> rgb2hsv_d ( const Vec3< double > &  rgb)

Convert 3-channel rgb to hsv. Non-templated helper routine.

IMATH_EXPORT Color4<double> rgb2hsv_d ( const Color4< double > &  rgb)

Convert 4-channel rgb to hsv. Non-templated helper routine.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 PackedColor rgb2packed ( const Vec3< T > &  c)

Convert 3-channel rgb to PackedColor

Definition at line 156 of file ImathColorAlgo.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 PackedColor rgb2packed ( const Color4< T > &  c)

Convert 4-channel rgb to PackedColor (with alpha)

Definition at line 181 of file ImathColorAlgo.h.