Nuke binary plugins 15.1.5
 
Loading...
Searching...
No Matches
DD::Image::CameraLensContext Class Reference

#include <CameraOp.h>

Public Member Functions

 CameraLensContext (LensProjection _mode=LensProjection::PERSPECTIVE)
 
bool isLinearProjection () const
 

Public Attributes

LensProjection mode
 Which projection mode the context is configured for.
 
fdk::Mat4d * transforms
 Mat4d array matching slr::SlrMatrixDefaults order & count (primarily for Slr2 use)
 
const Formatformat
 Output pixel format.
 
int formatWrapU
 How to handle coordinate wrapping at left/right edge of format.
 
int formatWrapV
 How to handle coordinate wrapping at top/bottom edge of format.
 
double distortA
 Distortion a polynomial.
 
double distortB
 Distortion b polynomial.
 
double distortC
 Distortion c polynomial.
 
double distortD
 Distortion D polynomial derived from a, b & c.
 

Detailed Description

Contains information used for camera lens projection functions.

Info like the camera xform, projection matrix, and their inverses are now passed in this struct so the function prototype remains static and this struct can be expanded in scope.

TODO: what does this need for stereo support? etc

Member Function Documentation

◆ isLinearProjection()

bool CameraLensContext::isLinearProjection ( ) const

Returns true if projection in context can be described linearly with a 4x4 matrix, based on the context's current settings. This is usually only true for perspective and orthographic modes if no lens distortion in being done.

References distortA, distortB, distortC, distortD, mode, and DD::Image::ORTHOGRAPHIC.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com