Represents a linear RGB color and a weight. More...
#include <color.h>
Public Types | |
typedef Eigen::Array4f | Base |
Public Member Functions | |
Color4f () | |
Create an zero value. | |
Color4f (const Color3f &c) | |
Create from a 3-channel color. | |
Color4f (float r, float g, float b, float w) | |
Initialize the color vector with specific per-channel values. | |
template<typename Derived > | |
Color4f (const Eigen::ArrayBase< Derived > &p) | |
Construct a color vector from ArrayBase (needed to play nice with Eigen) | |
template<typename Derived > | |
Color4f & | operator= (const Eigen::ArrayBase< Derived > &p) |
Assign a color vector from ArrayBase (needed to play nice with Eigen) | |
Color3f | divideByFilterWeight () const |
Divide by the filter weight and convert into a Color3f value. | |
std::string | toString () const |
Return a human-readable string summary. | |
Represents a linear RGB color and a weight.
This is used by Nori's image reconstruction filter code