OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
op::CameraParameterReader Class Reference

#include <cameraParameterReader.hpp>

Public Member Functions

 CameraParameterReader ()
 
virtual ~CameraParameterReader ()
 
 CameraParameterReader (const std::string &serialNumber, const Matrix &cameraIntrinsics, const Matrix &cameraDistortion, const Matrix &cameraExtrinsics=Matrix(), const Matrix &cameraExtrinsicsInitial=Matrix())
 
void readParameters (const std::string &cameraParameterPath, const std::vector< std::string > &serialNumbers={})
 
void readParameters (const std::string &cameraParameterPath, const std::string &serialNumber)
 
void writeParameters (const std::string &cameraParameterPath) const
 
unsigned long long getNumberCameras () const
 
const std::vector< std::string > & getCameraSerialNumbers () const
 
const std::vector< Matrix > & getCameraMatrices () const
 
const std::vector< Matrix > & getCameraDistortions () const
 
const std::vector< Matrix > & getCameraIntrinsics () const
 
const std::vector< Matrix > & getCameraExtrinsics () const
 
const std::vector< Matrix > & getCameraExtrinsicsInitial () const
 
bool getUndistortImage () const
 
void setUndistortImage (const bool undistortImage)
 
void undistort (Matrix &frame, const unsigned int cameraIndex=0u)
 

Detailed Description

Definition at line 8 of file cameraParameterReader.hpp.

Constructor & Destructor Documentation

◆ CameraParameterReader() [1/2]

op::CameraParameterReader::CameraParameterReader ( )
explicit

◆ ~CameraParameterReader()

virtual op::CameraParameterReader::~CameraParameterReader ( )
virtual

◆ CameraParameterReader() [2/2]

op::CameraParameterReader::CameraParameterReader ( const std::string &  serialNumber,
const Matrix cameraIntrinsics,
const Matrix cameraDistortion,
const Matrix cameraExtrinsics = Matrix(),
const Matrix cameraExtrinsicsInitial = Matrix() 
)
explicit

Member Function Documentation

◆ getCameraDistortions()

const std::vector<Matrix>& op::CameraParameterReader::getCameraDistortions ( ) const

◆ getCameraExtrinsics()

const std::vector<Matrix>& op::CameraParameterReader::getCameraExtrinsics ( ) const

◆ getCameraExtrinsicsInitial()

const std::vector<Matrix>& op::CameraParameterReader::getCameraExtrinsicsInitial ( ) const

◆ getCameraIntrinsics()

const std::vector<Matrix>& op::CameraParameterReader::getCameraIntrinsics ( ) const

◆ getCameraMatrices()

const std::vector<Matrix>& op::CameraParameterReader::getCameraMatrices ( ) const

◆ getCameraSerialNumbers()

const std::vector<std::string>& op::CameraParameterReader::getCameraSerialNumbers ( ) const

◆ getNumberCameras()

unsigned long long op::CameraParameterReader::getNumberCameras ( ) const

◆ getUndistortImage()

bool op::CameraParameterReader::getUndistortImage ( ) const

◆ readParameters() [1/2]

void op::CameraParameterReader::readParameters ( const std::string &  cameraParameterPath,
const std::string &  serialNumber 
)

◆ readParameters() [2/2]

void op::CameraParameterReader::readParameters ( const std::string &  cameraParameterPath,
const std::vector< std::string > &  serialNumbers = {} 
)

◆ setUndistortImage()

void op::CameraParameterReader::setUndistortImage ( const bool  undistortImage)

◆ undistort()

void op::CameraParameterReader::undistort ( Matrix frame,
const unsigned int  cameraIndex = 0u 
)

◆ writeParameters()

void op::CameraParameterReader::writeParameters ( const std::string &  cameraParameterPath) const

The documentation for this class was generated from the following file: