mf
Media Framework
|
Parameters of Z to depth projection. More...
#include <depth_projection_parameters.h>
Public Types | |
enum | depth_range { signed_normalized, unsigned_normalized, unsigned_normalized_disparity } |
Public Member Functions | |
bool | valid () const |
real | depth_min () const |
real | depth_max () const |
Public Attributes | |
real | z_near |
Unsigned Z distance of near clipping plane to camera. More... | |
real | z_far |
Unsigned Z distance of far clipping plane to camera. More... | |
depth_range | range = unsigned_normalized |
Specifies range of depth values for points in frustum. More... | |
bool | flip_z = true |
Whether Z axis needs to be reversed, i.e. -Z direction maps to positive depth. More... | |
Parameters of Z to depth projection.
Defines how the Z coordinates in view space are mapped to depth values in image space. For points in the direction of camera depth is always positive, and increases with distance to camera. When view space coordinate system is right-handed (camera looks at -Z), flip_z
needs to be set.
|
inline |
|
inline |
bool mf::depth_projection_parameters::valid | ( | ) | const |
bool mf::depth_projection_parameters::flip_z = true |
Whether Z axis needs to be reversed, i.e. -Z direction maps to positive depth.
depth_range mf::depth_projection_parameters::range = unsigned_normalized |
Specifies range of depth values for points in frustum.
real mf::depth_projection_parameters::z_far |
Unsigned Z distance of far clipping plane to camera.
real mf::depth_projection_parameters::z_near |
Unsigned Z distance of near clipping plane to camera.