Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::VideoSource_MDcam Class Reference

VideoSource_MDcam simplifies acces to more then one DCam. It suports multiple IEEE1394-adapters, extern synchronization via parallel port and networked capture cluster. More...

#include <VideoSource/VideoSource_MDcam.hh>

+ Inheritance diagram for BIAS::VideoSource_MDcam:
+ Collaboration diagram for BIAS::VideoSource_MDcam:

Public Member Functions

void ActivateScorpionTimestamp ()
 
void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
int AutoMode (dc1394feature_t feature, dc1394feature_mode_t mode)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
int EqualizeFeature (int master, dc1394feature_t feature)
 Read. More...
 
int ExternalTrigger (bool on, bool active)
 
if on==true && active=true try to open parport at ParPort_, 

if it fails, return -1 else set cameras to external trigger mode if on==false set cameras to internal trigger mode if active==true est cameras into external trigger mode but ignore parport More...

 
VideoSource_DCAMGetCamera (int n)
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
float GetGain ()
 
int GetID (int i)
 
int GetNumCams ()
 
float GetShutter ()
 
int GrabSingle (BIAS::Camera< unsigned char > *Image)
 Call GrabSingle() with a prepared array of images to be filled. More...
 
int GrabSingle (BIAS::Camera< unsigned short > *image)
 
int InitCameras (const std::string filename)
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
int OnePushAuto (dc1394feature_t feature)
 
int PostGrab ()
 
int PreGrab ()
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
int ReleaseCameras ()
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
int ScanBus (std::ofstream &ofs)
 
void SetBytesPerPixel (unsigned char b)
 
int SetCamera (CameraParameterSet camparam)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugLevelDcam (int d)
 
void SetDebugStream (const std::ostream &os)
 
int SetFeature (dc1394feature_t feature, unsigned int value)
 
void SetFps (float fps)
 
int SetGain (float g)
 
int SetShutter (float exptime)
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
 VideoSource_MDcam ()
 
 ~VideoSource_MDcam ()
 

Static Public Member Functions

static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 

Protected Member Functions

long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
bool ActiveTrigger_
 
unsigned char BytesPerPixel_
 
VideoSource_DCAM ** Camera_
 
int DebuglevelDcam_
 
bool ExternalTrigger_
 
float Fps_
 
int NumCams_
 
unsigned long ParPort_
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 

Detailed Description

VideoSource_MDcam simplifies acces to more then one DCam. It suports multiple IEEE1394-adapters, extern synchronization via parallel port and networked capture cluster.

Author
evers
Examples:
ExampleMDCamToShm.cpp, ExampleMDCamToShmWx.cpp, and Scan1394Bus.cpp.

Definition at line 57 of file VideoSource_MDcam.hh.

Constructor & Destructor Documentation

VideoSource_MDcam::VideoSource_MDcam ( )

Definition at line 37 of file VideoSource_MDcam.cpp.

VideoSource_MDcam::~VideoSource_MDcam ( )

Definition at line 49 of file VideoSource_MDcam.cpp.

Member Function Documentation

void VideoSource_MDcam::ActivateScorpionTimestamp ( )

Activates the timestamp for PointGrey Scorpion SCOR-20SO

Definition at line 192 of file VideoSource_MDcam.cpp.

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

int VideoSource_MDcam::AutoMode ( dc1394feature_t  feature,
dc1394feature_mode_t  mode 
)

Definition at line 320 of file VideoSource_MDcam.cpp.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

int VideoSource_MDcam::EqualizeFeature ( int  master,
dc1394feature_t  feature 
)

Read.

Parameters
featurefrom
masterand distributed it to all

Definition at line 367 of file VideoSource_MDcam.cpp.

int VideoSource_MDcam::ExternalTrigger ( bool  on,
bool  active 
)

if on==true && active=true try to open parport at ParPort_, 

if it fails, return -1 else set cameras to external trigger mode if on==false set cameras to internal trigger mode if active==true est cameras into external trigger mode but ignore parport

Definition at line 340 of file VideoSource_MDcam.cpp.

VideoSource_DCAM* BIAS::VideoSource_MDcam::GetCamera ( int  n)
inline
Examples:
ExampleMDCamToShm.cpp.

Definition at line 120 of file VideoSource_MDcam.hh.

int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

float BIAS::VideoSource_MDcam::GetGain ( )
inline

Definition at line 97 of file VideoSource_MDcam.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

int BIAS::VideoSource_MDcam::GetID ( int  i)
inline

Definition at line 121 of file VideoSource_MDcam.hh.

int BIAS::VideoSource_MDcam::GetNumCams ( )
inline

Definition at line 118 of file VideoSource_MDcam.hh.

float BIAS::VideoSource_MDcam::GetShutter ( )
inline

Definition at line 94 of file VideoSource_MDcam.hh.

int VideoSource_MDcam::GrabSingle ( BIAS::Camera< unsigned char > *  Image)

Call GrabSingle() with a prepared array of images to be filled.

The size of the array MUST be the number of cameras

Examples:
ExampleMDCamToShm.cpp.

Definition at line 225 of file VideoSource_MDcam.cpp.

int VideoSource_MDcam::GrabSingle ( BIAS::Camera< unsigned short > *  image)

Definition at line 256 of file VideoSource_MDcam.cpp.

int VideoSource_MDcam::InitCameras ( const std::string  filename)
Examples:
ExampleMDCamToShm.cpp.

Definition at line 112 of file VideoSource_MDcam.cpp.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
int VideoSource_MDcam::OnePushAuto ( dc1394feature_t  feature)

Definition at line 330 of file VideoSource_MDcam.cpp.

int VideoSource_MDcam::PostGrab ( )
Examples:
ExampleMDCamToShm.cpp.

Definition at line 213 of file VideoSource_MDcam.cpp.

int VideoSource_MDcam::PreGrab ( )
Examples:
ExampleMDCamToShm.cpp.

Definition at line 199 of file VideoSource_MDcam.cpp.

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

int VideoSource_MDcam::ReleaseCameras ( )
Examples:
ExampleMDCamToShm.cpp.

Definition at line 175 of file VideoSource_MDcam.cpp.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

int VideoSource_MDcam::ScanBus ( std::ofstream &  ofs)
void BIAS::VideoSource_MDcam::SetBytesPerPixel ( unsigned char  b)
inline

Definition at line 101 of file VideoSource_MDcam.hh.

int VideoSource_MDcam::SetCamera ( CameraParameterSet  camparam)

Definition at line 379 of file VideoSource_MDcam.cpp.

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void VideoSource_MDcam::SetDebugLevelDcam ( int  d)
Examples:
ExampleMDCamToShm.cpp.

Definition at line 57 of file VideoSource_MDcam.cpp.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

int VideoSource_MDcam::SetFeature ( dc1394feature_t  feature,
unsigned int  value 
)

Definition at line 288 of file VideoSource_MDcam.cpp.

void BIAS::VideoSource_MDcam::SetFps ( float  fps)
inline
Examples:
ExampleMDCamToShm.cpp.

Definition at line 100 of file VideoSource_MDcam.hh.

int VideoSource_MDcam::SetGain ( float  g)

Definition at line 298 of file VideoSource_MDcam.cpp.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

int VideoSource_MDcam::SetShutter ( float  exptime)

Definition at line 308 of file VideoSource_MDcam.cpp.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

Member Data Documentation

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

bool BIAS::VideoSource_MDcam::ActiveTrigger_
protected

Definition at line 139 of file VideoSource_MDcam.hh.

unsigned char BIAS::VideoSource_MDcam::BytesPerPixel_
protected

Definition at line 134 of file VideoSource_MDcam.hh.

VideoSource_DCAM** BIAS::VideoSource_MDcam::Camera_
protected

Definition at line 136 of file VideoSource_MDcam.hh.

int BIAS::VideoSource_MDcam::DebuglevelDcam_
protected

Definition at line 133 of file VideoSource_MDcam.hh.

bool BIAS::VideoSource_MDcam::ExternalTrigger_
protected

Definition at line 138 of file VideoSource_MDcam.hh.

float BIAS::VideoSource_MDcam::Fps_
protected

Definition at line 126 of file VideoSource_MDcam.hh.

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

int BIAS::VideoSource_MDcam::NumCams_
protected

Definition at line 137 of file VideoSource_MDcam.hh.

unsigned long BIAS::VideoSource_MDcam::ParPort_
protected

Definition at line 142 of file VideoSource_MDcam.hh.


The documentation for this class was generated from the following files: