Functions | |
ErrorType | Fc2Triclops::getContextFromCamera (unsigned long cameraSerialNumber, TriclopsContext *outputContext) |
Generate a context from a connected camera. More... | |
int | Fc2Triclops::handleFc2Error (FlyCapture2::Error const &fc2Error) |
Handles FlyCapture 2 errors. More... | |
int | Fc2Triclops::handleFc2TriclopsError (Fc2Triclops::ErrorType const &error, const char *pCallNameStr) |
Handles FlyCapture2Bridge errors. More... | |
ErrorType | Fc2Triclops::isBB2 (const FlyCapture2::Camera &cam, bool &flag) |
Checks if a camera is a dual sensor Bumblebee camera. More... | |
ErrorType | Fc2Triclops::isBBXB3 (const FlyCapture2::Camera &cam, bool &flag) |
Checks if a camera is a triple sensor Bumblebee camera. More... | |
ErrorType | Fc2Triclops::packThreeSideBySideRgbImage (const FlyCapture2::Image &imageRgbRight, const FlyCapture2::Image &imageRgbMiddle, const FlyCapture2::Image &imageRgbLeft, FlyCapture2::Image &packedRgbImage) |
Generates a side-by-side image from a stereo image triplet. More... | |
ErrorType | Fc2Triclops::packTwoSideBySideRgbImage (const FlyCapture2::Image &imageRgbRight, const FlyCapture2::Image &imageRgbLeft, FlyCapture2::Image &packedRgbImage) |
Generates a side-by-side image from a left and right image pair. More... | |
ErrorType | Fc2Triclops::setStereoMode (FlyCapture2::Camera &cam, StereoCameraMode &mode) |
Sets a new stereo mode for a connected camera. More... | |
ErrorType | Fc2Triclops::unpackUnprocessedRawOrMono16Image (const FlyCapture2::Image &unprocessedImage, bool isLittleEndian, FlyCapture2::Image &unprocessedImageRight, FlyCapture2::Image &unprocessedImageLeft) |
Unpacks a raw, interleaved, stereo image into right and left raw images. More... | |
ErrorType | Fc2Triclops::unpackUnprocessedRgbImage (const FlyCapture2::Image &unprocessedImage, FlyCapture2::Image &unprocessedImageRight, FlyCapture2::Image &unprocessedImageMiddle, FlyCapture2::Image &unprocessedImageLeft) |
Unpacks a raw triple stereo image into right, left and middle raw images. More... | |
This group contains interfacing functions to manage side-by-side images retrieved from Point Grey cameras or to directly control such cameras.
FlyCapture 2 interfacing error codes.
These errors are just a conversion of possible FlyCapture 2 errors.
Point Grey's stereo cameras operating modes.
Stereo cameras usually provide a dual image stream, interleaving the data from the right camera and the left camera (i.e. RLRLRL...), from the point of view of the camera, using Mono16 format for mono sensors and Raw16 for color cameras.
ErrorType Fc2Triclops::getContextFromCamera | ( | unsigned long | cameraSerialNumber, |
TriclopsContext * | outputContext | ||
) |
Generate a context from a connected camera.
cameraSerialNumber | The serial number of the connected camera |
outputContext | The context to be filled |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_NO_CAMERA | The serial number provided refers to a camera that is not currently connected |
ERRORTYPE_CONFIG_READ_FAILED | The retrieval of the configuration failed |
ERRORTYPE_NO_CONFIG_FILE | The retrieved camera configuration is empty |
ERRORTYPE_CORRUPT_CONFIG_FILE | The retrieved camera configuration is corrupt |
int Fc2Triclops::handleFc2Error | ( | FlyCapture2::Error const & | fc2Error | ) |
Handles FlyCapture 2 errors.
This function handles errors generated by FlyCapture 2 objects (e.g. camera, image ), while printing a formatted log trace.
fc2Error | The error to handle |
int Fc2Triclops::handleFc2TriclopsError | ( | Fc2Triclops::ErrorType const & | error, |
const char * | pCallNameStr | ||
) |
Handles FlyCapture2Bridge errors.
This function handles errors generated by FlyCapture2Bridge functions, while printing a formatted log trace.
error | The error to handle |
pCallNameStr | A string to add to the formatted log (e.g. the caller's name) |
(int)error + 1000
ErrorType Fc2Triclops::isBB2 | ( | const FlyCapture2::Camera & | cam, |
bool & | flag | ||
) |
Checks if a camera is a dual sensor Bumblebee camera.
cam | The camera to check |
flag | Whether the provided camera is a dual sensor camera or not |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_CONFIG_READ_FAILED | The retrieval of the configuration failed |
ErrorType Fc2Triclops::isBBXB3 | ( | const FlyCapture2::Camera & | cam, |
bool & | flag | ||
) |
Checks if a camera is a triple sensor Bumblebee camera.
cam | The camera to check |
flag | Whether the provided camera is a riple sensor camera or not |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_CONFIG_READ_FAILED | The retrieval of the configuration failed |
ErrorType Fc2Triclops::packThreeSideBySideRgbImage | ( | const FlyCapture2::Image & | imageRgbRight, |
const FlyCapture2::Image & | imageRgbMiddle, | ||
const FlyCapture2::Image & | imageRgbLeft, | ||
FlyCapture2::Image & | packedRgbImage | ||
) |
Generates a side-by-side image from a stereo image triplet.
imageRgbRight | The right image |
imageRgbMiddle | The middle image |
imageRgbLeft | The left image |
packedRgbImage | The resulting side-by-side image |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_FAILED_CONVERSION | The conversion failed |
ERRORTYPE_INVALID_INPUT | One or more input parameters are invalid |
ERRORTYPE_INVALID_OUTPUT | The function generated an invalid output |
ErrorType Fc2Triclops::packTwoSideBySideRgbImage | ( | const FlyCapture2::Image & | imageRgbRight, |
const FlyCapture2::Image & | imageRgbLeft, | ||
FlyCapture2::Image & | packedRgbImage | ||
) |
Generates a side-by-side image from a left and right image pair.
imageRgbRight | The right image |
imageRgbLeft | The left image |
packedRgbImage | The resulting side-by-side image |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_FAILED_CONVERSION | The conversion failed |
ERRORTYPE_INVALID_INPUT | One or more input parameters are invalid |
ERRORTYPE_INVALID_OUTPUT | The function generated an invalid output |
ErrorType Fc2Triclops::setStereoMode | ( | FlyCapture2::Camera & | cam, |
StereoCameraMode & | mode | ||
) |
Sets a new stereo mode for a connected camera.
cam | The camera for which to set the new stereo mode |
mode | The stereo mode to set |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_CONFIG_READ_FAILED | The retrieval of the configuration failed |
ERRORTYPE_NO_FMT7_SUPPORT | Format7 is not supported |
ERRORTYPE_INVALID_FMT7 | Format7 configuration is invalid |
ERRORTYPE_NO_CORRECT_CAMERAMODE | The chosen stereo mode value is not correct for the camera provided |
ErrorType Fc2Triclops::unpackUnprocessedRawOrMono16Image | ( | const FlyCapture2::Image & | unprocessedImage, |
bool | isLittleEndian, | ||
FlyCapture2::Image & | unprocessedImageRight, | ||
FlyCapture2::Image & | unprocessedImageLeft | ||
) |
Unpacks a raw, interleaved, stereo image into right and left raw images.
unprocessedImage | The interleaved raw image to unpack |
isLittleEndian | Whether the image is encoded in little or big endian format. |
unprocessedImageRight | The unpacked right image |
unprocessedImageLeft | The unpacked left image |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_FAILED_CONVERSION | The conversion failed |
ERRORTYPE_INVALID_INPUT | One or more input parameters are invalid |
ERRORTYPE_INVALID_OUTPUT | The function generated an invalid output |
ErrorType Fc2Triclops::unpackUnprocessedRgbImage | ( | const FlyCapture2::Image & | unprocessedImage, |
FlyCapture2::Image & | unprocessedImageRight, | ||
FlyCapture2::Image & | unprocessedImageMiddle, | ||
FlyCapture2::Image & | unprocessedImageLeft | ||
) |
Unpacks a raw triple stereo image into right, left and middle raw images.
This function unpacks triple stereo images that have been packed as the color channels of an RGB image. The triple stereo mode can be enabled on a connected camera using setStereoMode() to set THREE_CAMERA stereo mode.
unprocessedImage | The packed raw image to unpack |
unprocessedImageRight | The unpacked right image |
unprocessedImageMiddle | The unpacked middle image |
unprocessedImageLeft | The unpacked left image |
ERRORTYPE_OK | The function completed successfully |
ERRORTYPE_FAILED_CONVERSION | The conversion failed |
ERRORTYPE_INVALID_INPUT | One or more input parameters are invalid |
ERRORTYPE_INVALID_OUTPUT | The function generated an invalid output |
Contact Support | Triclops SDK Programmer's Guide and API Reference | Mon Dec 19 2016 © FLIR Integrated Imaging Solutions Inc. All rights reserved. |