libfreenect2 0.4
Open source driver for the Kinect for Windows v2 (K4W2) sensor
Loading...
Searching...
No Matches
ProjectiveCameraModel Struct Reference

Resolution, pinhole intrinsics, and distortion for one camera. More...

#include <libfreenect2/calibration_profile.h>

Public Member Functions

 ProjectiveCameraModel ()
bool isValid (std::string *error=nullptr) const
ProjectiveCameraModel scaledTo (uint32_t scaled_width, uint32_t scaled_height) const
 Scale the raster and intrinsics while preserving pixel-center geometry.
ProjectiveCameraModel rectified () const
 Return a model with the same pinhole geometry and no output distortion.

Public Attributes

uint32_t width
uint32_t height
double fx
double fy
double cx
double cy
DistortionModel distortion_model
std::array< double, 8 > distortion

Detailed Description

Resolution, pinhole intrinsics, and distortion for one camera.

Constructor & Destructor Documentation

◆ ProjectiveCameraModel()

ProjectiveCameraModel ( )

Referenced by rectified(), and scaledTo().

Member Function Documentation

◆ isValid()

bool isValid ( std::string * error = nullptr) const

◆ scaledTo()

ProjectiveCameraModel scaledTo ( uint32_t scaled_width,
uint32_t scaled_height ) const

Scale the raster and intrinsics while preserving pixel-center geometry.

References ProjectiveCameraModel().

◆ rectified()

ProjectiveCameraModel rectified ( ) const

Return a model with the same pinhole geometry and no output distortion.

References ProjectiveCameraModel().

Member Data Documentation

◆ width

uint32_t width

◆ height

uint32_t height

◆ fx

double fx

◆ fy

double fy

◆ cx

double cx

◆ cy

double cy

◆ distortion_model

DistortionModel distortion_model

◆ distortion

std::array<double, 8> distortion