![]() |
AliceVision
Photogrammetric Computer Vision Framework
|
#include <pixelTypes.hpp>
Public Member Functions | |
| Rgb (T red, T green, T blue) | |
| Full constructor. More... | |
| Rgb (const Base &val) | |
| Copy constructor. More... | |
| Rgb (const T val=0) | |
| Single value construction. More... | |
| const T & | r () const |
| Get readonly Red channel value. More... | |
| T & | r () |
| Get rw Red channel value. More... | |
| const T & | g () const |
| Get readonly Green channel value. More... | |
| T & | g () |
| Get rw Green channel value. More... | |
| const T & | b () const |
| Get readonly Blue channel value. More... | |
| T & | b () |
| Get rw Blue channel value. More... | |
| operator T () const | |
| Get approximate Gray value using rec601 Luma conversion. More... | |
| Rgb | operator- (const Rgb &other) const |
| Elementwise substraction. More... | |
| Rgb | operator+ (const Rgb &other) const |
| Elementwise addition. More... | |
| Rgb | operator* (const Rgb &other) const |
| Elementwise multiplication. More... | |
| template<typename Z > | |
| Rgb | operator/ (const Z &val) const |
| scalar division More... | |
| template<typename Z > | |
| Rgb | operator* (const Z &val) const |
| scalar multiplication More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Rgb &col) |
| stream operator More... | |
Red Greeen Blue template pixel type
| T | type of each channel |
|
inline |
Full constructor.
| red | Red value |
| green | value |
| blue | value |
|
inlineexplicit |
Copy constructor.
| val | Source RGB value |
|
inlineexplicit |
Single value construction.
| val | Value to set in each channel |
|
inline |
Get rw Blue channel value.
|
inline |
Get readonly Blue channel value.
|
inline |
Get rw Green channel value.
|
inline |
Get readonly Green channel value.
|
inline |
Get approximate Gray value using rec601 Luma conversion.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get rw Red channel value.
|
inline |
Get readonly Red channel value.
|
friend |
stream operator
| os | Stream in which rgb value is outputted |
| col | Color to store into the stream |
1.8.17