Operator Console
|
the base class for image acquisition More...
#include <ImageAcquisition.h>
Public Member Functions | |
ImageAcquisition (void) | |
virtual | ~ImageAcquisition (void) |
virtual bool | CaptureFrame ()=0 |
capture a single image into m_buf More... | |
virtual bool | Close ()=0 |
virtual bool | Open ()=0 |
void | GetFrame (void *buf) |
virtual bool | Init (int width, int height, int bytesPerPixel=4) |
may be overridden, but be sure to call parent function also More... | |
unsigned int | BytesPerFrame () |
unsigned int | PixelsPerFrame () |
int | GetHeight () |
CString & | GetInfo () |
int | GetWidth () |
void | SetHeight (int height) |
void | SetWidth (int width) |
ImageAcquisition (void) | |
virtual | ~ImageAcquisition (void) |
virtual bool | CaptureFrame ()=0 |
capture a single image into m_buf More... | |
virtual bool | Close ()=0 |
virtual bool | Open ()=0 |
void | GetFrame (void *buf) |
virtual bool | Init (int width, int height, int bytesPerPixel=4) |
may be overridden, but be sure to call parent function also More... | |
unsigned int | BytesPerFrame () |
unsigned int | PixelsPerFrame () |
int | GetHeight () |
CString & | GetInfo () |
int | GetWidth () |
void | SetHeight (int height) |
void | SetWidth (int width) |
Static Public Member Functions | |
static UINT __cdecl | ThreadProc (LPVOID param) |
static UINT __cdecl | ThreadProc (LPVOID param) |
Public Attributes | |
int | m_source_ID |
The source ID for acquire_image() that indicates what type of device is in use. More... | |
int | m_device_ID |
[Used Epiphan only]: indicates from which of the two sources to capture More... | |
std::string | m_ini_file |
The fully-qualified name (including full path) of an Imatest INI file. More... | |
Protected Attributes | |
CriticalBuf | m_frame |
shared memory to hold copy of current frame More... | |
int | m_width |
width of image in pixels More... | |
int | m_height |
height of image in pixels More... | |
unsigned int | m_numBytes |
number of bytes in a frame More... | |
unsigned int | m_numPixels |
number of pixels in a frame More... | |
CString | m_logMsg |
error or information message More... | |
void * | m_buf |
buffer to capture into More... | |
the base class for image acquisition
ImageAcquisition::ImageAcquisition | ( | void | ) |
References m_buf, m_height, m_numBytes, m_numPixels, and m_width.
|
virtual |
References m_buf.
ImageAcquisition::ImageAcquisition | ( | void | ) |
|
virtual |
|
inline |
References m_numBytes.
Referenced by COperatorConsoleApp::AllocateImageBuf().
|
inline |
References m_numBytes.
|
pure virtual |
capture a single image into m_buf
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
Referenced by ThreadProc().
|
pure virtual |
capture a single image into m_buf
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
|
pure virtual |
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
|
pure virtual |
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
|
inline |
References CriticalBuf::Get(), and m_frame.
|
inline |
References CriticalBuf::Get(), and m_frame.
Referenced by COperatorConsoleApp::OnFrameReady(), and COperatorConsoleApp::OnRunTest().
|
inline |
References m_height.
Referenced by COperatorConsoleApp::InitBlemishThread(), and COperatorConsoleApp::InitSFRplusThread().
|
inline |
References m_height.
|
inline |
References m_logMsg.
Referenced by COperatorConsoleApp::Init(), and COperatorConsoleApp::ReInit().
|
inline |
References m_logMsg.
|
inline |
References m_width.
|
inline |
References m_width.
Referenced by COperatorConsoleApp::InitBlemishThread(), and COperatorConsoleApp::InitSFRplusThread().
|
virtual |
may be overridden, but be sure to call parent function also
References height, CriticalBuf::Init(), m_buf, m_frame, m_height, m_logMsg, m_numBytes, m_numPixels, m_width, and width.
Referenced by FileAcquisition::Init(), COperatorConsoleApp::InitCamera(), and FileAcq::Open().
|
virtual |
may be overridden, but be sure to call parent function also
|
pure virtual |
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
|
pure virtual |
Implemented in FileAcq, FileAcq, ImatestLibAcq, SimpleDirectShowAcq, ImatestLibAcq, SimpleDirectShowAcq, FileAcquisition, FileAcquisition, ImatestLibAcq, and ImatestLibAcq.
|
inline |
References m_numPixels.
|
inline |
References m_numPixels.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
References CaptureFrame(), DONE_INDEX, m_buf, ThreadControl::m_data, ThreadControl::m_events, m_frame, ThreadControl::m_parentID, ThreadControl::m_threadMsg, NUM_THREAD_EVENTS, RUN_INDEX, and CriticalBuf::Set().
Referenced by COperatorConsoleApp::InitCameraThread().
|
static |
|
protected |
buffer to capture into
Referenced by ImageAcquisition(), Init(), SimpleDirectShowAcq::Open(), FileAcq::Open(), SimpleDirectShowAcq::SimpleDirectShowAcq(), ThreadProc(), and ~ImageAcquisition().
int ImageAcquisition::m_device_ID |
[Used Epiphan only]: indicates from which of the two sources to capture
|
protected |
shared memory to hold copy of current frame
Referenced by GetFrame(), Init(), and ThreadProc().
|
protected |
height of image in pixels
Referenced by GetHeight(), ImageAcquisition(), Init(), SimpleDirectShowAcq::Open(), FileAcq::Open(), SetHeight(), and SimpleDirectShowAcq::SimpleDirectShowAcq().
std::string ImageAcquisition::m_ini_file |
The fully-qualified name (including full path) of an Imatest INI file.
|
protected |
error or information message
Referenced by GetInfo(), Init(), and SimpleDirectShowAcq::Open().
|
protected |
number of bytes in a frame
Referenced by BytesPerFrame(), ImageAcquisition(), Init(), and SimpleDirectShowAcq::SimpleDirectShowAcq().
|
protected |
number of pixels in a frame
Referenced by ImageAcquisition(), Init(), PixelsPerFrame(), and SimpleDirectShowAcq::SimpleDirectShowAcq().
int ImageAcquisition::m_source_ID |
The source ID for acquire_image() that indicates what type of device is in use.
|
protected |
width of image in pixels
Referenced by GetWidth(), ImageAcquisition(), Init(), SimpleDirectShowAcq::Open(), FileAcq::Open(), SetWidth(), and SimpleDirectShowAcq::SimpleDirectShowAcq().