#include <mvl2_video_reader.h>
Inheritance diagram for mvl2_video_reader:

Definition at line 20 of file mvl2_video_reader.h.
Public Member Functions | |
| mvl2_video_reader () | |
| Dflt ctor. | |
| virtual | ~mvl2_video_reader () |
| Destructor. | |
| vcl_vector< vcl_string > | load_configs (vcl_string filename) |
| Load configurations from a file, returns a configuration's name vector. | |
| bool | use_config (vcl_string configname) |
| Use the configuration given by the configuration's name. | |
| void | display_configs () |
| Display the configurations on the standard output. | |
| virtual bool | initialize (int width, int height, vcl_string format, vcl_string file_name)=0 |
| Initialize the camera (format can be Grey, RGB, or more complex). | |
| virtual void | uninitialize () |
| Tidy up. | |
| virtual bool | is_initialized () |
| Check whether camera is initialised. | |
| virtual void | set_capture_size (int width, int height)=0 |
| Set the size of image captured. | |
| virtual int | get_width () |
| Return width of image (in pixels). | |
| virtual int | get_height () |
| Return height of image (in pixels). | |
| virtual int | get_frame_number () |
| Return the current frame number. | |
| virtual double | get_frame_rate ()=0 |
| Return the frame rate in frames per second. | |
| virtual void | set_frame_rate (double frame_rate)=0 |
| Set the frame rate in frames per second. | |
| virtual int | seek (int) |
| Move frame counter on to given frame if relevant. | |
| virtual int | next_frame ()=0 |
| Move frame counter on to next frame. | |
| virtual void | reset_frame ()=0 |
| Reset frame counter to zero. | |
| virtual bool | get_frame (vil_image_view< vxl_byte > &image)=0 |
| Put frame data into the given image. | |
| virtual void | set_brightness (int) |
| Set the brightness of the picture. | |
| virtual void | set_hue (int) |
| Set the hue of the picture. | |
| virtual void | set_colour (int) |
| Set the colour of the picture. | |
| virtual void | set_contrast (int) |
| Set the contrast of the picture. | |
| virtual void | set_whiteness (int) |
| Set the whiteness of the picture. | |
| virtual vcl_string | is_a () const |
| Name of the class. | |
| virtual int | length () |
| Returns the number of frames available from the beginning of the stream or -1 if unknown. | |
| virtual mvl2_video_reader * | clone () const =0 |
| Create a copy on the heap and return base class pointer. | |
Protected Attributes | |
| bool | use_colour_ |
| bool | is_initialized_ |
| unsigned int | current_frame_ |
| double | frame_rate_ |
| int | width_ |
| int | height_ |
| bool | firstcall_ |
| vcl_vector< vcl_string > | config_names_ |
| vcl_vector< vcl_pair< int, int > > | config_sizes_ |
| vcl_vector< vcl_string > | config_strings_ |
| vcl_vector< vcl_string > | config_filenames_ |
|
|
Dflt ctor.
Definition at line 14 of file mvl2_video_reader.cxx. |
|
|
Destructor.
Definition at line 18 of file mvl2_video_reader.cxx. |
|
|
Create a copy on the heap and return base class pointer.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Display the configurations on the standard output.
Definition at line 82 of file mvl2_video_reader.cxx. |
|
|
Put frame data into the given image. Warning: the image is only valid until the next call to get_frame, initialize or uninitialize. return false if error. Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Return the current frame number.
Definition at line 59 of file mvl2_video_reader.h. |
|
|
Return the frame rate in frames per second.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Return height of image (in pixels).
Reimplemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 56 of file mvl2_video_reader.h. |
|
|
Return width of image (in pixels).
Reimplemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 53 of file mvl2_video_reader.h. |
|
||||||||||||||||||||
|
Initialize the camera (format can be Grey, RGB, or more complex).
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Name of the class.
Reimplemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 23 of file mvl2_video_reader.cxx. |
|
|
Check whether camera is initialised.
Definition at line 47 of file mvl2_video_reader.h. |
|
|
Returns the number of frames available from the beginning of the stream or -1 if unknown.
Reimplemented in mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 113 of file mvl2_video_reader.cxx. |
|
|
Load configurations from a file, returns a configuration's name vector.
Definition at line 28 of file mvl2_video_reader.cxx. |
|
|
Move frame counter on to next frame.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Reset frame counter to zero.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Move frame counter on to given frame if relevant.
Reimplemented in mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 68 of file mvl2_video_reader.h. |
|
|
Set the brightness of the picture.
Definition at line 83 of file mvl2_video_reader.h. |
|
||||||||||||
|
Set the size of image captured.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Set the colour of the picture.
Definition at line 89 of file mvl2_video_reader.h. |
|
|
Set the contrast of the picture.
Definition at line 92 of file mvl2_video_reader.h. |
|
|
Set the frame rate in frames per second.
Implemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. |
|
|
Set the hue of the picture.
Definition at line 86 of file mvl2_video_reader.h. |
|
|
Set the whiteness of the picture.
Definition at line 95 of file mvl2_video_reader.h. |
|
|
Tidy up.
Reimplemented in mvl2_video_from_avi, mvl2_video_from_avi, and mvl2_video_from_sequence. Definition at line 44 of file mvl2_video_reader.h. |
|
|
Use the configuration given by the configuration's name.
Definition at line 100 of file mvl2_video_reader.cxx. |
|
|
Definition at line 118 of file mvl2_video_reader.h. |
|
|
Definition at line 115 of file mvl2_video_reader.h. |
|
|
Definition at line 116 of file mvl2_video_reader.h. |
|
|
Definition at line 117 of file mvl2_video_reader.h. |
|
|
Definition at line 110 of file mvl2_video_reader.h. |
|
|
Definition at line 114 of file mvl2_video_reader.h. |
|
|
Definition at line 111 of file mvl2_video_reader.h. |
|
|
Definition at line 113 of file mvl2_video_reader.h. |
|
|
Definition at line 109 of file mvl2_video_reader.h. |
|
|
Definition at line 108 of file mvl2_video_reader.h. |
|
|
Definition at line 112 of file mvl2_video_reader.h. |
1.4.4