Spinnaker SDK C++
4.2.0.21
 
 

 
Loading...
Searching...
No Matches
StereoAcquisition.cpp File Reference

Functions

bool ProcessArgs (int argc, char *argv[], StereoAcquisitionParams &params)
 ProcessArgs.
 
void DisplayHelp (const string &pszProgramName, const StereoAcquisitionParams &params)
 DisplayHelp.
 
bool Compute3DPointCloudAndSave (const StereoParameters &stereoParameters, ImageList &imageList, int counter, string prefix="")
 Compute3DPointCloudAndSave.
 
bool SaveImagesToFile (const StreamTransmitFlags &streamTransmitFlags, ImageList &imageList, int counter, const string prefix="")
 
bool SetDeviceLinkThroughput (CameraPtr pCam)
 
bool AcquireImages (CameraPtr pCam, StereoParameters &stereoParameters, unsigned int numImageSets)
 
bool RunSingleCamera (CameraPtr pCam, StereoParameters &stereoParameters, int numImageSets)
 
int main (int argc, char **argv)
 

Function Documentation

◆ AcquireImages()

bool AcquireImages ( CameraPtr  pCam,
StereoParameters stereoParameters,
unsigned int  numImageSets 
)

◆ Compute3DPointCloudAndSave()

bool Compute3DPointCloudAndSave ( const StereoParameters stereoParameters,
ImageList imageList,
int  counter,
string  prefix = "" 
)

Compute3DPointCloudAndSave.

Compute the 3D point cloud using the image pair and save it to a ply file.

Parameters
[in]stereoParametersThe stereo parameters.
[in]imageMapThe map of images.
[in]counterThe counter.
[in]prefixThe prefix of the saved file name.
Returns
true if the computation is successful, false otherwise.
Examples
StereoAcquisition.cpp, and StereoAcquisition_QuickSpin.cpp.

◆ DisplayHelp()

void DisplayHelp ( const string &  pszProgramName,
const StereoAcquisitionParams params 
)

DisplayHelp.

Display the help for the stereo acquisition example.

Parameters
[in]pszProgramNameThe name of the program.
[in]paramsThe parameters for the stereo acquisition example.
Examples
StereoAcquisition.cpp, StereoAcquisition_QuickSpin.cpp, and StereoGPIO.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

◆ ProcessArgs()

bool ProcessArgs ( int  argc,
char *  argv[],
StereoAcquisitionParams params 
)

ProcessArgs.

ProcessArgs takes command line arguments and modifies the given StereoAcquisitionParams object accordingly.

Parameters
[in]argcThe number of arguments passed to the program.
[in]argvThe command line arguments passed to the program.
[in,out]paramsA StereoAcquisitionParams object to be modified by the function.
Returns
true if the arguments are valid, false otherwise.
Examples
StereoAcquisition.cpp, StereoAcquisition_QuickSpin.cpp, and StereoGPIO.cpp.

◆ RunSingleCamera()

bool RunSingleCamera ( CameraPtr  pCam,
StereoParameters stereoParameters,
int  numImageSets 
)

◆ SaveImagesToFile()

bool SaveImagesToFile ( const StreamTransmitFlags streamTransmitFlags,
ImageList imageList,
int  counter,
const string  prefix = "" 
)

◆ SetDeviceLinkThroughput()

bool SetDeviceLinkThroughput ( CameraPtr  pCam)