ImFusion SDK 4.3
StereoRectification Class Reference

#include <ImFusion/Vision/StereoRectification.h>

Performs stereo rectification und unrectification on images. More...

Detailed Description

Performs stereo rectification und unrectification on images.

Classes

struct  RectificationInformation
 Stores parameters used in stereo rectification, a process that aligns images from a stereo camera pair to simplify disparity computation. More...
 

Public Types

using Side = StereoImage::Side
 

Public Member Functions

 StereoRectification (const CameraCalibrationDataComponent &camLeft, const CameraCalibrationDataComponent &camRight, double alpha=1.0, double zeroDisparityDepth=0)
 Construct StereoRectification object given left and right camera parameters.
 
 StereoRectification (const CameraCalibrationDataComponent &camLeft, const CameraCalibrationDataComponent &camRight, const StereoCalibrationDataComponent &stereoReg, double alpha=1.0, double zeroDisparityDepth=0)
 
bool valid () const
 Returns whether the object is in a valid state.
 
RectificationInformation rectificationInformation () const
 
void setUseCuda (bool useCuda)
 
bool useCuda () const
 
std::unique_ptr< SharedImageSetrectify (const SharedImageSet &img, Side side)
 There are three options to rectify. If the input is a stereo image set, it is still allowed to choose which side to rectify.
 
std::unique_ptr< SharedImageSetrectify (const StereoSharedImageSet &ssis, Side side)
 
std::unique_ptr< StereoSharedImageSetrectify (const StereoSharedImageSet &ssis)
 
std::unique_ptr< SharedImageSetunrectifyToUndistorted (const SharedImageSet &img, Side side)
 Undo rectification of images without considering distortion.
 
std::unique_ptr< StereoSharedImageSetunrectifyToUndistorted (const StereoSharedImageSet &ssis)
 
std::unique_ptr< SharedImageSetunrectifyToUndistorted (const StereoSharedImageSet &ssis, Side side)
 
std::unique_ptr< SharedImageSetmapRectLeft () const
 
std::unique_ptr< SharedImageSetmapRectRight () const
 
std::unique_ptr< SharedImageSetmapUnrectLeft () const
 
std::unique_ptr< SharedImageSetmapUnrectRight () const
 

Constructor & Destructor Documentation

◆ StereoRectification()

StereoRectification ( const CameraCalibrationDataComponent & camLeft,
const CameraCalibrationDataComponent & camRight,
double alpha = 1.0,
double zeroDisparityDepth = 0 )

Construct StereoRectification object given left and right camera parameters.

Parameters
camLeftLeft camera calibration
camRightRight camera calibration
alphaSpecifies whether the output image should only contain all valid pixels (alpha = 0) or whether all pixels from the input image shall be mapped (alpha = 1). -1 applies an automated process.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close