62 m_nCameras(nCameras), m_mode(mode), m_colorMode(colorMode), m_bayerPatternType(bayerPatternType)
86 FlyCaptureError ret = ::flycaptureBusCameraCount(&nCameras);
87 if (ret != FLYCAPTURE_OK)
156 if (ret != FLYCAPTURE_OK)
160 if (ret != FLYCAPTURE_OK)
165 ret = ::flycaptureStartCustomImage(
m_flyCaptureContext[i], 0, 4, 4, 640, 480, 100.0, FLYCAPTURE_MONO8);
167 ret = ::flycaptureStartCustomImage(
m_flyCaptureContext[i], 0, 4, 4, 640, 480, 100.0, FLYCAPTURE_RAW8);
169 if (ret != FLYCAPTURE_OK)
231 if (ret != FLYCAPTURE_OK)
BayerPatternType
The four possible variants for Bayer pattern conversion.
void SwapCameras(int nCamera1, int nCamera2)
Swap the camera source.
void GetCurrentTimestamp(unsigned int &sec, unsigned int &usec)
bool ConvertBayerPattern(const CByteImage *pInputImage, CByteImage *pOutputImage, BayerPatternType type)
Converts an 8 bit Bayer pattern CByteImage to an RGB24 color CByteImage.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
unsigned char * pixels
The pointer to the the pixels.
CByteImage * m_ppOriginalImages[DRAGONFLY_MAX_CAMERAS]
CByteImage * m_ppImages[DRAGONFLY_MAX_CAMERAS]
CDragonFlyCapture(int nCameras, VideoMode mode, ColorMode colorMode, ImageProcessor::BayerPatternType bayerPatternType)
unsigned int GetSerialFromCamera(int nCamera)
Get the serial number from the camera.
const ImageProcessor::BayerPatternType m_bayerPatternType
const ColorMode m_colorMode
bool CopyImage(const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion *pROI=0, bool bUseSameSize=false)
Copies one CByteImage to another.
FlyCaptureImage * m_ppInternalImages[DRAGONFLY_MAX_CAMERAS]
FlyCaptureContext m_flyCaptureContext[DRAGONFLY_MAX_CAMERAS]
Context pointer for the PGRFlyCapture library.
#define DRAGONFLY_MAX_CAMERAS
GLenum GLsizei GLsizei height
ImageType
Enum specifying the supported image types.
CByteImage::ImageType GetType()
bool CaptureImage(CByteImage **ppImages)
FlyCaptureInfoEx m_flyCaptureInfoEx
Information from the camera.
bool Resize(const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion *pROI=0, bool bInterpolation=true)
Resizes a CByteImage and writes the result to a CByteImage.