HDK
|
Single channel of a Houdini DSM image. More...
#include <IMG_DeepShadow.h>
Public Member Functions | |
IMG_DeepShadowChannel (const char *name, int float_offset, int tuple_size, const char *storage="real32") | |
bool | operator== (const IMG_DeepShadowChannel &s) const |
const char * | getName () const |
const char * | getStorage () const |
int | getOffset () const |
int | getTupleSize () const |
Single channel of a Houdini DSM image.
A Houdini deep shadow/camera file can have any number of image channels (planes). A DSM image contains a single channel for opacity. A deep camera image has the opacity channel along with any number of extra image channels.
Definition at line 250 of file IMG_DeepShadow.h.
IMG_DeepShadowChannel::IMG_DeepShadowChannel | ( | const char * | name, |
int | float_offset, | ||
int | tuple_size, | ||
const char * | storage = "real32" |
||
) |
name | The unique name of the DSM channel |
float_offset | When data is read or written in deep shadow files, the pixel data is interleaved. That is, the data for a single pixel can be represented as an array of floats. Each channel has a unique offset into the array. The user should not assume that the offsets are contiguous. For example, the pixel data might look like: [ Of.r, // Opacity red
Of.g, // Opacity green
Of.b, // Opacity blue
Cf.r, // Color (red)
Cf.g, // Color (green)
Cf.b, // Color (blue)
s, // s coordinate
t, // t coordinate
N.x, // Normal x
N.y, // Normal y
N.z, // Normal z
]
IMG_DeepShadowChannel("Of", 0, 3);
IMG_DeepShadowChannel("Cf", 3, 3);
IMG_DeepShadowChannel("s", 6, 1);
IMG_DeepShadowChannel("t", 7, 1);
IMG_DeepShadowChannel("N", 8, 3);
|
tuple_size | Number of floats |
storage | Storage type. This may be one of { "real16", "real32", "real64" }. This value represents the storage of the channel in the file. |
|
inline |
Data acceess function
Definition at line 296 of file IMG_DeepShadow.h.
|
inline |
Data acceess function
Definition at line 298 of file IMG_DeepShadow.h.
|
inline |
Data acceess function
Definition at line 297 of file IMG_DeepShadow.h.
|
inline |
Data acceess function
Definition at line 299 of file IMG_DeepShadow.h.
bool IMG_DeepShadowChannel::operator== | ( | const IMG_DeepShadowChannel & | s | ) | const |