Nori  23
Color4f Struct Reference

Represents a linear RGB color and a weight. More...

#include <color.h>

Inheritance diagram for Color4f:
Collaboration diagram for Color4f:

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 >
Color4foperator= (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.
 

Detailed Description

Represents a linear RGB color and a weight.

This is used by Nori's image reconstruction filter code

Definition at line 89 of file color.h.


The documentation for this struct was generated from the following file: