template<class ChanType, const unsigned char NumChans>
class mudbox::PixelType< ChanType, NumChans >
A templated pixel type class, where the channel type and number of channels are arguments.
Supports the defined channel types and channel counts of 1, 2, 3, and 4. It can convert between any one type of pixel and any other directly, and provides constructors to achieve this. It also supports swapping the r and b channels and converting to inverse luminance. The channel types handle converting between each other, while the pixel types handle converting between each other.
Definition at line 366 of file image.h.
|
PixelType< ChanType, NumChans > & | swapRB () |
| Swap the red and blue channels – converts RGBA to BGRA and back. More...
|
|
| PixelType (const PixelType< uInt8Channel, 4 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt8Channel, 3 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt8Channel, 2 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt8Channel, 1 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt16Channel, 4 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt16Channel, 3 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt16Channel, 2 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< uInt16Channel, 1 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float16Channel, 4 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float16Channel, 3 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float16Channel, 2 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float16Channel, 1 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float32Channel, 4 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float32Channel, 3 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float32Channel, 2 > &p) |
| conversion constructor More...
|
|
| PixelType (const PixelType< float32Channel, 1 > &p) |
| conversion constructor More...
|
|
void | SetLuminance (const PixelType< uInt8Channel, 4 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< uInt8Channel, 3 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< uInt16Channel, 4 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< uInt16Channel, 3 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float16Channel, 4 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float16Channel, 3 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float32Channel, 4 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float32Channel, 3 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float32Channel, 1 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< float16Channel, 1 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< uInt16Channel, 1 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetLuminance (const PixelType< uInt8Channel, 1 > &p) |
| RGBA = Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt8Channel, 4 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt8Channel, 3 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt16Channel, 4 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt16Channel, 3 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float16Channel, 4 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float16Channel, 3 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float32Channel, 4 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float32Channel, 3 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float32Channel, 1 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< float16Channel, 1 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt16Channel, 1 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|
void | SetInvLuminance (const PixelType< uInt8Channel, 1 > &p) |
| RGBA = 1 - Luminance of input. More...
|
|