Triclops SDK
4.0.3.0
flycapture2bridge.h
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright © 2016 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
3 //
4 // This software is the confidential and proprietary information of FLIR
5 // Integrated Imaging Solutions, Inc. ("Confidential Information"). You
6 // shall not disclose such Confidential Information and shall use it only in
7 // accordance with the terms of the license agreement you entered into
8 // with FLIR Integrated Imaging Solutions, Inc. (FLIR).
9 //
10 // FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
11 // SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
12 // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
13 // PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
14 // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
15 // THIS SOFTWARE OR ITS DERIVATIVES.
16 //=============================================================================
17 
18 //=============================================================================
19 // $Id: flycapture2bridge.h 309688 2016-12-21 18:28:11Z silvanoa $
20 //=============================================================================
21 
22 //=============================================================================
25 //=============================================================================
26 
27 #ifndef FLYCAPTURE2BRIDGE_H
28 #define FLYCAPTURE2BRIDGE_H
29 
30 //=============================================================================
31 // PGR Includes
32 //=============================================================================
33 
34 #include "triclops.h"
35 #include <FlyCapture2.h>
36 
37 namespace Fc2Triclops {
38 
53 enum ErrorType {
66 };
67 
84 getContextFromCamera(unsigned long cameraSerialNumber,
85  TriclopsContext *outputContext);
86 
102 ErrorType
103 unpackUnprocessedRawOrMono16Image(const FlyCapture2::Image &unprocessedImage,
104  bool isLittleEndian,
105  FlyCapture2::Image &unprocessedImageRight,
106  FlyCapture2::Image &unprocessedImageLeft);
107 
127 ErrorType
128 unpackUnprocessedRgbImage(const FlyCapture2::Image &unprocessedImage,
129  FlyCapture2::Image &unprocessedImageRight,
130  FlyCapture2::Image &unprocessedImageMiddle,
131  FlyCapture2::Image &unprocessedImageLeft);
132 
147 ErrorType
148 packTwoSideBySideRgbImage(const FlyCapture2::Image &imageRgbRight,
149  const FlyCapture2::Image &imageRgbLeft,
150  FlyCapture2::Image &packedRgbImage);
151 
167 ErrorType
168 packThreeSideBySideRgbImage(const FlyCapture2::Image &imageRgbRight,
169  const FlyCapture2::Image &imageRgbMiddle,
170  const FlyCapture2::Image &imageRgbLeft,
171  FlyCapture2::Image &packedRgbImage);
172  // End of group FlyCapture2Bridge
174 }
175 
176 
177 #endif // FLYCAPTURE2BRIDGE_H
Definition: flycapture2bridge.h:59
Definition: flycapture2bridge.h:63
ErrorType 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.
Definition: flycapture2bridge.h:54
Definition: flycapture2bridge.h:65
void * TriclopsContext
Wrapper for the internal C++ Triclops context.
Definition: triclopstype.h:54
Definition: flycapture2bridge.h:64
Definition: flycapture2bridge.h:61
Definition: flycapture2bridge.h:62
Definition: flycapture2bridge.h:57
ErrorType 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.
ErrorType 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.
Definition: flycapture2bridge.h:56
Definition: flycapture2bridge.h:55
ErrorType 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.
ErrorType
FlyCapture 2 interfacing error codes.
Definition: flycapture2bridge.h:53
Triclops operations API.
Definition: flycapture2bridge.h:58
Definition: flycapture2bridge.h:60
ErrorType getContextFromCamera(unsigned long cameraSerialNumber, TriclopsContext *outputContext)
Generate a context from a connected camera.
Definition: fc2triclops.cpp:27
Contact Support Triclops SDK Programmer's Guide and API Reference