Image Component Library (ICL)
|
Internally spawned thread class for continuous grabbing. More...
#include <PylonGrabberThread.h>
Public Member Functions | |
ICLIO_API | PylonGrabberThread (Pylon::IStreamGrabber *grabber, PylonColorConverter *converter, PylonCameraOptions *options) |
Constructor sets all internal fields and allocates memory. | |
ICLIO_API | ~PylonGrabberThread () |
Destructor frees all allocated memory. | |
ICLIO_API void | run () |
acquires images and writes them into an internal queue | |
ICLIO_API void | resetBuffer () |
reinitializes buffer | |
ICLIO_API core::ImgBase * | getCurrentImage () |
getter for the most current image | |
Private Member Functions | |
void | grab () |
grabs a single image into m_BufferQueue. | |
Private Attributes | |
Pylon::IStreamGrabber * | m_Grabber |
A pointer to the image-providing StreamGrabber. | |
PylonColorConverter * | m_Converter |
A pointer to the ColorConverter. | |
PylonCameraOptions * | m_Options |
A pointer to the CameraOptions. | |
ConcGrabberBuffer | m_Buffers |
A buffer holding read and write buffers. | |
int | m_Error |
A counter for acquisition errors. | |
int | m_Timeout |
A counter for acquisition timeouts. | |
int | m_Acquired |
A counter for correct acquisitions. |
Internally spawned thread class for continuous grabbing.
ICLIO_API icl::io::pylon::PylonGrabberThread::PylonGrabberThread | ( | Pylon::IStreamGrabber * | grabber, |
PylonColorConverter * | converter, | ||
PylonCameraOptions * | options | ||
) |
Constructor sets all internal fields and allocates memory.
grabber | The IStreamGrabber providing the images. |
converter | |
options |
Destructor frees all allocated memory.
getter for the most current image
void icl::io::pylon::PylonGrabberThread::grab | ( | ) | [private] |
grabs a single image into m_BufferQueue.
reinitializes buffer
ICLIO_API void icl::io::pylon::PylonGrabberThread::run | ( | ) | [virtual] |
acquires images and writes them into an internal queue
Implements icl::utils::Thread.
int icl::io::pylon::PylonGrabberThread::m_Acquired [private] |
A counter for correct acquisitions.
A buffer holding read and write buffers.
A pointer to the ColorConverter.
int icl::io::pylon::PylonGrabberThread::m_Error [private] |
A counter for acquisition errors.
Pylon::IStreamGrabber* icl::io::pylon::PylonGrabberThread::m_Grabber [private] |
A pointer to the image-providing StreamGrabber.
A pointer to the CameraOptions.
int icl::io::pylon::PylonGrabberThread::m_Timeout [private] |
A counter for acquisition timeouts.