#include <cams/pike.h>
Inheritance diagram for firevision::PikeCamera:
Public Member Functions | |
PikeCamera (const CameraArgumentParser *cap) | |
Constructor. | |
virtual | ~PikeCamera () |
Destructor. | |
virtual void | open () |
Open the camera. | |
virtual void | print_info () |
Print out camera information. | |
virtual bool | set_autofunction_aoi (unsigned int left, unsigned int top, unsigned int width, unsigned int height, bool show_work_area=false) |
Set the area of interest (AOI) for the auto functions. | |
virtual void | parse_set_autofnc_aoi (const char *aoi) |
Parse the autofnc_aoi parameter in the camera argument string. |
Allows to access some special features of the Pike camera made by Allied Vision Technologies.
Definition at line 34 of file pike.h.
firevision::PikeCamera::PikeCamera | ( | const CameraArgumentParser * | cap | ) |
Constructor.
cap | Camera argument parser. |
Definition at line 112 of file pike.cpp.
References firevision::CameraArgumentParser::get(), firevision::CameraArgumentParser::has(), and parse_set_autofnc_aoi().
firevision::PikeCamera::~PikeCamera | ( | ) | [virtual] |
void firevision::PikeCamera::open | ( | ) | [virtual] |
Open the camera.
The camera is opened, but image transfer not yet started. This can be used to detect general problems with the camera while delaying the real transfer startup until it is needed.
Reimplemented from firevision::FirewireCamera.
Definition at line 136 of file pike.cpp.
References firevision::FirewireCamera::_opened, firevision::FirewireCamera::open(), and set_autofunction_aoi().
void firevision::PikeCamera::parse_set_autofnc_aoi | ( | const char * | aoi | ) | [virtual] |
Parse the autofnc_aoi parameter in the camera argument string.
The format ist <left>x<top>+<width>x<height>-<show>. "-\<show\>" is optional.
aoi | the parameter string of the autofnc_aoi parameter |
Definition at line 275 of file pike.cpp.
Referenced by PikeCamera().
void firevision::PikeCamera::print_info | ( | ) | [virtual] |
Print out camera information.
Shall print out camera information and current setup information on stdout.
Reimplemented from firevision::FirewireCamera.
Definition at line 155 of file pike.cpp.
References firevision::FirewireCamera::_camera, and firevision::FirewireCamera::print_info().
bool firevision::PikeCamera::set_autofunction_aoi | ( | unsigned int | left, | |
unsigned int | top, | |||
unsigned int | width, | |||
unsigned int | height, | |||
bool | show_work_area = false | |||
) | [virtual] |
Set the area of interest (AOI) for the auto functions.
left | offset form the left image border | |
top | offset form the top image border | |
width | width of the AOI | |
height | height of the AOI | |
show_work_area | highlight the work area in the image |
Definition at line 197 of file pike.cpp.
References firevision::FirewireCamera::_camera, firevision::FirewireCamera::_opened, firevision::avt_af_area_size_t::height, firevision::avt_af_area_position_t::left, firevision::avt_autofnc_aoi_t::on_off, firevision::avt_autofnc_aoi_t::show_work_area, firevision::avt_af_area_position_t::top, and firevision::avt_af_area_size_t::width.
Referenced by open().