OpenDCX

Deep Compositing Extended

OpenDCX 2.2.2 documentation

DeepTransform

class DeepTransform

Supports 2D transforms with subpixel mask resampling.

TODO: change colorThreshold to a Pixel so that each channel can
be thresholded individually? Non-color channels may require larger values than color channels...
class SampleOffset
struct SampleOffset
Subpixel offsets and weight
class SegmentRef
struct DeepTransform::SegmentRef
Used to keep track of the segments from multiple input deep pixels possibly contributing to one output pixel.
void DeepTransform::transform(float x, float y, float &outX, float &outY, const IMATH_NAMESPACE::Box2i *clamp_to = 0) const

Forward-transform xy coord through matrix.

void DeepTransform::backTransform(float x, float y, float &outX, float &outY, const IMATH_NAMESPACE::Box2i *clamp_to = 0) const

Reverse-transform xy coord through inverse matrix.

static void DeepTransform::transform(float x, float y, const IMATH_NAMESPACE::M44f &m, float &outX, float &outY)

Transform xy coord with provided matrix.

static void DeepTransform::clampToBbox(float &x, float &y, const IMATH_NAMESPACE::Box2i &clamp_bbox)

Clamp x/y values to a bounding-box.

virtual void DeepTransform::sample(int outX, int outY, const DeepTile &deep_in_tile, const ChannelSet &sample_channels, Dcx::DeepPixel &deep_out_pixel)

DeepPixel sampling methods