68 m_pStereoCalibration = 0;
81 m_pStereoCalibration = 0;
83 m_pCalibration->
Set(calibration);
90 width = stereoCalibration.
width;
91 height = stereoCalibration.
height;
98 m_pStereoCalibration->
Set(stereoCalibration);
104 delete m_pCalibration;
106 if (m_pStereoCalibration)
107 delete m_pStereoCalibration;
126 if (m_pStereoCalibration)
128 delete m_pStereoCalibration;
129 m_pStereoCalibration = 0;
138 m_pCalibration->
Set(calibration);
146 width = stereoCalibration.
width;
147 height = stereoCalibration.
height;
152 delete m_pCalibration;
156 if (!m_pStereoCalibration)
162 m_pStereoCalibration->
Set(stereoCalibration);
167 if (m_pStereoCalibration)
169 else if (m_pCalibration)
172 printf(
"error: no calibration object has been instantiated\n");
183 if (ppImages[0]->width != width || ppImages[0]->height != height || ppImages[0]->type != type)
184 printf(
"error: image does not match COpenGLCapture::CaptureImage\n");
193 else if (m_nCameras == 2)
195 if (ppImages[1]->width != width || ppImages[1]->height != height || ppImages[1]->type != type)
196 printf(
"error: image does not match COpenGLCapture::CaptureImage\n");
const CCalibration * GetRightCalibration() const
Access to the instance of CCalibration for the camera model of the right camera.
bool InitByCalibration(const CCalibration *pCalibration, bool bActivateShading=true)
bool FlipY(const CByteImage *pInputImage, CByteImage *pOutputImage)
Flips the rows in a CByteImage vertically and writes the result to a CByteImage.
bool CaptureImage(CByteImage **ppImages)
COpenGLVisualizer * m_pOpenGLVisualizer
const CCameraParameters & GetCameraParameters() const
Gives access to the camera parameters.
const CCalibration * GetLeftCalibration() const
Access to the instance of CCalibration for the camera model of the left camera.
void Set(const CStereoCalibration &stereoCalibration)
Initializes the stereo camera model, given an instance of CStereoCalibration.
bool GetImage(CByteImage *pDestinationImage)
void Set(const CCalibration &calibration)
Initializes the camera model, given an instance of CCalibration.
Camera model parameters and functions for a single camera.
virtual void DrawScene()=0
void Set(const CCalibration &calibration)
int height
The height of the images of the stereo camera system in pixels.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Camera model and functions for a stereo camera system.
int width
The width of the images of the stereo camera system in pixels.