#include <cmu_1394_camera.h>

Public Member Functions | |
| cmu_1394_camera () | |
| cmu_1394_camera (int node, const cmu_1394_camera_params &cp) | |
| ~cmu_1394_camera () | |
| bool | get_camera_present () const |
| camera status. | |
| bool | get_running () const |
| bool | init (int node) |
| initialize the camera. | |
| bool | start () |
| start and stop the camera. | |
| void | stop () |
| bool | get_frame () |
| update the camera driver frame store from the camera. | |
| bool | get_rgb_image (vil1_memory_image_of< vil1_rgb< unsigned char > > &im, int pixel_sample_interval=1, bool reread=true) |
| access the frame store and map the buffer to a sampled rgb image. | |
| bool | get_monochrome_image (vil1_memory_image_of< unsigned char > &im, int pixel_sample_interval=1, bool reread=true) |
| access the frame store and map the buffer to a sampled monochrome image. | |
| void | start_capture (vcl_string const &video_file_name) |
| initialize the file capture process, provide a filename for the video. | |
| bool | stop_capture () |
| stop the file capture process, write out the video file. | |
| void | update_settings () |
| send the current parameter values to the camera. | |
| vcl_vector< vcl_string > | get_capability_descriptions () const |
| get string values for valid camera video configurations. | |
| vcl_vector< int > | get_valid_formats () const |
| get the set of valid 1394 camera format values. | |
| vcl_vector< int > | get_valid_modes () const |
| get the set of valid 1394 camera mode values. | |
| vcl_vector< int > | get_valid_rates () const |
| get the set of valid 1394 frame rate codes. | |
| int | get_current () const |
| get the index of the current valid configuration. | |
| void | set_current (int current) |
| set the index of the current valid configuration. | |
| vcl_string | current_capability_desc () const |
| get the string description of the currently selected configuration. | |
| int | current_format () const |
| code value for the current configuration. | |
| int | current_mode () const |
| code value for the current configuration. | |
| int | current_rate () const |
| code value for the current configuration. | |
| void | set_params (const cmu_1394_camera_params &cp) |
| void | constrain () |
| make sure the parameters are consistent | |
| vcl_string | video_configuration (const int video_format, const int video_mode) const |
| vcl_string | frame_rate (const int rate_code) const |
Public Attributes | |
| int | video_format_ |
| int | video_mode_ |
| int | frame_rate_ |
| bool | auto_exposure_ |
| bool | auto_gain_ |
| bool | manual_shutter_control_ |
| int | shutter_ |
| int | min_shutter_ |
| int | max_shutter_ |
| int | gain_ |
| int | min_gain_ |
| int | max_gain_ |
| int | brightness_ |
| int | min_brightness_ |
| int | max_brightness_ |
| bool | auto_exposure_control_ |
| int | exposure_ |
| int | min_exposure_ |
| int | max_exposure_ |
| int | sharpness_ |
| int | min_sharpness_ |
| int | max_sharpness_ |
| bool | autowhitebalance_ |
| int | whitebalanceU_ |
| int | whitebalanceV_ |
| bool | onepushWBbalance_ |
| int | min_WB_ |
| int | max_WB_ |
| bool | rgb_ |
| color image vs monochrome as a display mode (not collection). | |
Private Member Functions | |
| void | print_control (C1394CameraControl const &c) |
| void | print_status (C1394CameraControl const &c) |
| void | init_capabilities () |
| find the standard 1394 capabilities of this camera. | |
| void | init_control () |
| Establish the control variables for the camera. | |
| void | validate_default_configuration () |
| is the camera resolution, frame rate and color sampling setting valid?. | |
| void | update_video_configuration () |
Private Attributes | |
| bool | link_failed_ |
| bool | camera_present_ |
| bool | running_ |
| bool | image_valid_ |
| bool | file_capture_ |
| bool | capture_ |
| capture vs acquisition (multiple frame buffering vs single frame). | |
| vpro_video_process_sptr | vp_ |
| int | current_ |
| vcl_vector< int > | format_ |
| vcl_vector< int > | mode_ |
| vcl_vector< int > | rate_ |
| vcl_vector< vcl_string > | capability_desc_ |
Friends | |
| vcl_ostream & | operator<< (vcl_ostream &os, const cmu_1394_camera &c) |
| stream output of the camera properties. | |
| vcl_ostream & | operator<< (vcl_ostream &os, const cmu_1394_camera_params &cpp) |
Definition at line 34 of file cmu_1394_camera.h.
| cmu_1394_camera::cmu_1394_camera | ( | ) |
Definition at line 6 of file cmu_1394_camera.cxx.
| cmu_1394_camera::cmu_1394_camera | ( | int | node, |
| const cmu_1394_camera_params & | cp | ||
| ) |
Definition at line 20 of file cmu_1394_camera.cxx.
| cmu_1394_camera::~cmu_1394_camera | ( | ) |
Definition at line 17 of file cmu_1394_camera.cxx.
| void cmu_1394_camera_params::constrain | ( | ) | [inherited] |
make sure the parameters are consistent
Definition at line 114 of file cmu_1394_camera_params.cxx.
| vcl_string cmu_1394_camera::current_capability_desc | ( | ) | const [inline] |
get the string description of the currently selected configuration.
Definition at line 98 of file cmu_1394_camera.h.
| int cmu_1394_camera::current_format | ( | ) | const [inline] |
code value for the current configuration.
Definition at line 101 of file cmu_1394_camera.h.
| int cmu_1394_camera::current_mode | ( | ) | const [inline] |
code value for the current configuration.
Definition at line 103 of file cmu_1394_camera.h.
| int cmu_1394_camera::current_rate | ( | ) | const [inline] |
code value for the current configuration.
Definition at line 105 of file cmu_1394_camera.h.
| vcl_string cmu_1394_camera_params::frame_rate | ( | const int | rate_code | ) | const [inherited] |
Definition at line 211 of file cmu_1394_camera_params.cxx.
| bool cmu_1394_camera::get_camera_present | ( | ) | const [inline] |
camera status.
Definition at line 43 of file cmu_1394_camera.h.
| vcl_vector<vcl_string> cmu_1394_camera::get_capability_descriptions | ( | ) | const [inline] |
get string values for valid camera video configurations.
Definition at line 80 of file cmu_1394_camera.h.
| int cmu_1394_camera::get_current | ( | ) | const [inline] |
get the index of the current valid configuration.
Definition at line 92 of file cmu_1394_camera.h.
| bool cmu_1394_camera::get_frame | ( | ) |
update the camera driver frame store from the camera.
Definition at line 318 of file cmu_1394_camera.cxx.
| bool cmu_1394_camera::get_monochrome_image | ( | vil1_memory_image_of< unsigned char > & | im, |
| int | pixel_sample_interval = 1, |
||
| bool | reread = true |
||
| ) |
access the frame store and map the buffer to a sampled monochrome image.
Definition at line 344 of file cmu_1394_camera.cxx.
| bool cmu_1394_camera::get_rgb_image | ( | vil1_memory_image_of< vil1_rgb< unsigned char > > & | im, |
| int | pixel_sample_interval = 1, |
||
| bool | reread = true |
||
| ) |
access the frame store and map the buffer to a sampled rgb image.
Definition at line 383 of file cmu_1394_camera.cxx.
| bool cmu_1394_camera::get_running | ( | ) | const [inline] |
Definition at line 44 of file cmu_1394_camera.h.
| vcl_vector<int> cmu_1394_camera::get_valid_formats | ( | ) | const [inline] |
get the set of valid 1394 camera format values.
Definition at line 83 of file cmu_1394_camera.h.
| vcl_vector<int> cmu_1394_camera::get_valid_modes | ( | ) | const [inline] |
get the set of valid 1394 camera mode values.
Definition at line 86 of file cmu_1394_camera.h.
| vcl_vector<int> cmu_1394_camera::get_valid_rates | ( | ) | const [inline] |
get the set of valid 1394 frame rate codes.
Definition at line 89 of file cmu_1394_camera.h.
| bool cmu_1394_camera::init | ( | int | node | ) |
initialize the camera.
Definition at line 243 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::init_capabilities | ( | ) | [private] |
find the standard 1394 capabilities of this camera.
Definition at line 189 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::init_control | ( | ) | [private] |
Establish the control variables for the camera.
Definition at line 214 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::print_control | ( | C1394CameraControl const & | c | ) | [private] |
Definition at line 33 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::print_status | ( | C1394CameraControl const & | c | ) | [private] |
Definition at line 71 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::set_current | ( | int | current | ) | [inline] |
set the index of the current valid configuration.
Definition at line 95 of file cmu_1394_camera.h.
| void cmu_1394_camera_params::set_params | ( | const cmu_1394_camera_params & | cp | ) | [inherited] |
Definition at line 74 of file cmu_1394_camera_params.cxx.
| bool cmu_1394_camera::start | ( | ) |
start and stop the camera.
Definition at line 265 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::start_capture | ( | vcl_string const & | video_file_name | ) |
initialize the file capture process, provide a filename for the video.
Definition at line 337 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::stop | ( | ) |
Definition at line 297 of file cmu_1394_camera.cxx.
| bool cmu_1394_camera::stop_capture | ( | ) |
stop the file capture process, write out the video file.
Definition at line 421 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::update_settings | ( | ) |
send the current parameter values to the camera.
Definition at line 139 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::update_video_configuration | ( | ) | [private] |
Definition at line 97 of file cmu_1394_camera.cxx.
| void cmu_1394_camera::validate_default_configuration | ( | ) | [private] |
is the camera resolution, frame rate and color sampling setting valid?.
if so set the current index to point to the setting if the suggested configuration is invalid then keep the original setting. If this is the first validation then set the index to 0, i.e., the first valid configuration
Definition at line 113 of file cmu_1394_camera.cxx.
| vcl_string cmu_1394_camera_params::video_configuration | ( | const int | video_format, |
| const int | video_mode | ||
| ) | const [inherited] |
Definition at line 147 of file cmu_1394_camera_params.cxx.
| vcl_ostream& operator<< | ( | vcl_ostream & | os, |
| const cmu_1394_camera_params & | cpp | ||
| ) | [friend, inherited] |
Definition at line 232 of file cmu_1394_camera_params.cxx.
| vcl_ostream& operator<< | ( | vcl_ostream & | os, |
| const cmu_1394_camera & | c | ||
| ) | [friend] |
stream output of the camera properties.
Definition at line 429 of file cmu_1394_camera.cxx.
bool cmu_1394_camera_params::auto_exposure_ [inherited] |
Definition at line 63 of file cmu_1394_camera_params.h.
bool cmu_1394_camera_params::auto_exposure_control_ [inherited] |
Definition at line 79 of file cmu_1394_camera_params.h.
bool cmu_1394_camera_params::auto_gain_ [inherited] |
Definition at line 64 of file cmu_1394_camera_params.h.
bool cmu_1394_camera_params::autowhitebalance_ [inherited] |
Definition at line 90 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::brightness_ [inherited] |
Definition at line 75 of file cmu_1394_camera_params.h.
bool cmu_1394_camera::camera_present_ [private] |
Definition at line 120 of file cmu_1394_camera.h.
vcl_vector<vcl_string> cmu_1394_camera::capability_desc_ [private] |
Definition at line 132 of file cmu_1394_camera.h.
bool cmu_1394_camera::capture_ [private] |
capture vs acquisition (multiple frame buffering vs single frame).
Reimplemented from cmu_1394_camera_params.
Definition at line 124 of file cmu_1394_camera.h.
int cmu_1394_camera::current_ [private] |
Definition at line 128 of file cmu_1394_camera.h.
int cmu_1394_camera_params::exposure_ [inherited] |
Definition at line 80 of file cmu_1394_camera_params.h.
bool cmu_1394_camera::file_capture_ [private] |
Definition at line 123 of file cmu_1394_camera.h.
vcl_vector<int> cmu_1394_camera::format_ [private] |
Definition at line 129 of file cmu_1394_camera.h.
int cmu_1394_camera_params::frame_rate_ [inherited] |
Definition at line 59 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::gain_ [inherited] |
Definition at line 71 of file cmu_1394_camera_params.h.
bool cmu_1394_camera::image_valid_ [private] |
Definition at line 122 of file cmu_1394_camera.h.
bool cmu_1394_camera::link_failed_ [private] |
Definition at line 119 of file cmu_1394_camera.h.
bool cmu_1394_camera_params::manual_shutter_control_ [inherited] |
Definition at line 66 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_brightness_ [inherited] |
Definition at line 77 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_exposure_ [inherited] |
Definition at line 82 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_gain_ [inherited] |
Definition at line 73 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_sharpness_ [inherited] |
Definition at line 86 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_shutter_ [inherited] |
Definition at line 69 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::max_WB_ [inherited] |
Definition at line 95 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_brightness_ [inherited] |
Definition at line 76 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_exposure_ [inherited] |
Definition at line 81 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_gain_ [inherited] |
Definition at line 72 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_sharpness_ [inherited] |
Definition at line 85 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_shutter_ [inherited] |
Definition at line 68 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::min_WB_ [inherited] |
Definition at line 94 of file cmu_1394_camera_params.h.
vcl_vector<int> cmu_1394_camera::mode_ [private] |
Definition at line 130 of file cmu_1394_camera.h.
bool cmu_1394_camera_params::onepushWBbalance_ [inherited] |
Definition at line 93 of file cmu_1394_camera_params.h.
vcl_vector<int> cmu_1394_camera::rate_ [private] |
Definition at line 131 of file cmu_1394_camera.h.
bool cmu_1394_camera_params::rgb_ [inherited] |
color image vs monochrome as a display mode (not collection).
Definition at line 100 of file cmu_1394_camera_params.h.
bool cmu_1394_camera::running_ [private] |
Definition at line 121 of file cmu_1394_camera.h.
int cmu_1394_camera_params::sharpness_ [inherited] |
Definition at line 84 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::shutter_ [inherited] |
Definition at line 67 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::video_format_ [inherited] |
Definition at line 57 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::video_mode_ [inherited] |
Definition at line 58 of file cmu_1394_camera_params.h.
vpro_video_process_sptr cmu_1394_camera::vp_ [private] |
Definition at line 126 of file cmu_1394_camera.h.
int cmu_1394_camera_params::whitebalanceU_ [inherited] |
Definition at line 91 of file cmu_1394_camera_params.h.
int cmu_1394_camera_params::whitebalanceV_ [inherited] |
Definition at line 92 of file cmu_1394_camera_params.h.
1.7.5.1