Public Member Functions | Protected Attributes | Private Attributes
mvl2_video_from_sequence Class Reference

A class to get video input from avi file. More...

#include <mvl2_video_from_sequence.h>

Inheritance diagram for mvl2_video_from_sequence:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 mvl2_video_from_sequence ()
 Dflt ctor.
virtual ~mvl2_video_from_sequence ()
 Destructor.
virtual bool initialize (int width, int height, vcl_string format, vcl_string file_name)
 Initialize the file (format can by Grey, RGB, or more complex).
virtual void uninitialize ()
 Tidy up.
virtual void set_capture_size (int width, int height)
 Set the size of image captured.
virtual int get_width () const
 Return width of image (in pixels).
virtual int get_height () const
 Return height of image (in pixels).
virtual double get_frame_rate () const
 Return the frame rate in frames per second.
virtual void set_frame_rate (double frame_rate)
 Set the frame rate in frames per second.
virtual int next_frame ()
 Move frame counter on to next frame.
virtual void reset_frame ()
 Reset frame counter to zero.
virtual bool get_frame (vil_image_view< vxl_byte > &image)
 Put frame data into the given image.
virtual vcl_string is_a () const
 Name of the class.
virtual mvl2_video_readerclone () const
 Create a copy on the heap and return base class pointer.
virtual int seek (int frame_number)
 Move frame counter on to given frame if relevant.
virtual int length ()
 Returns the number of frames available from the beginning of the stream or -1 if unknown.
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 is_initialized () const
 Check whether camera is initialised.
virtual int get_frame_number () const
 Return the current frame number.
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.

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_

Private Attributes

int no_digits_
vcl_string file_stem_
int offset_
bool use_seq_file_
vcl_vector< vcl_string > list_files_

Detailed Description

A class to get video input from avi file.

Definition at line 13 of file mvl2_video_from_sequence.h.


Constructor & Destructor Documentation

mvl2_video_from_sequence::mvl2_video_from_sequence ( )

Dflt ctor.

Definition at line 15 of file mvl2_video_from_sequence.cxx.

mvl2_video_from_sequence::~mvl2_video_from_sequence ( ) [virtual]

Destructor.

Definition at line 25 of file mvl2_video_from_sequence.cxx.


Member Function Documentation

mvl2_video_reader * mvl2_video_from_sequence::clone ( ) const [virtual]

Create a copy on the heap and return base class pointer.

Implements mvl2_video_reader.

Definition at line 34 of file mvl2_video_from_sequence.cxx.

void mvl2_video_reader::display_configs ( ) [inherited]

Display the configurations on the standard output.

Definition at line 82 of file mvl2_video_reader.cxx.

bool mvl2_video_from_sequence::get_frame ( vil_image_view< vxl_byte > &  image) [virtual]

Put frame data into the given image.

Implements mvl2_video_reader.

Definition at line 112 of file mvl2_video_from_sequence.cxx.

virtual int mvl2_video_reader::get_frame_number ( ) const [inline, virtual, inherited]

Return the current frame number.

Definition at line 59 of file mvl2_video_reader.h.

double mvl2_video_from_sequence::get_frame_rate ( ) const [virtual]

Return the frame rate in frames per second.

Implements mvl2_video_reader.

Definition at line 162 of file mvl2_video_from_sequence.cxx.

int mvl2_video_from_sequence::get_height ( ) const [virtual]

Return height of image (in pixels).

Reimplemented from mvl2_video_reader.

Definition at line 172 of file mvl2_video_from_sequence.cxx.

int mvl2_video_from_sequence::get_width ( ) const [virtual]

Return width of image (in pixels).

Reimplemented from mvl2_video_reader.

Definition at line 167 of file mvl2_video_from_sequence.cxx.

bool mvl2_video_from_sequence::initialize ( int  width,
int  height,
vcl_string  format,
vcl_string  file_name 
) [virtual]

Initialize the file (format can by Grey, RGB, or more complex).

Implements mvl2_video_reader.

Definition at line 40 of file mvl2_video_from_sequence.cxx.

vcl_string mvl2_video_from_sequence::is_a ( ) const [virtual]

Name of the class.

Reimplemented from mvl2_video_reader.

Definition at line 29 of file mvl2_video_from_sequence.cxx.

virtual bool mvl2_video_reader::is_initialized ( ) const [inline, virtual, inherited]

Check whether camera is initialised.

Definition at line 47 of file mvl2_video_reader.h.

int mvl2_video_from_sequence::length ( ) [virtual]

Returns the number of frames available from the beginning of the stream or -1 if unknown.

Reimplemented from mvl2_video_reader.

Definition at line 182 of file mvl2_video_from_sequence.cxx.

vcl_vector< vcl_string > mvl2_video_reader::load_configs ( vcl_string  filename) [inherited]

Load configurations from a file, returns a configuration's name vector.

Definition at line 28 of file mvl2_video_reader.cxx.

int mvl2_video_from_sequence::next_frame ( ) [virtual]

Move frame counter on to next frame.

Implements mvl2_video_reader.

Definition at line 105 of file mvl2_video_from_sequence.cxx.

void mvl2_video_from_sequence::reset_frame ( ) [virtual]

Reset frame counter to zero.

Implements mvl2_video_reader.

Definition at line 152 of file mvl2_video_from_sequence.cxx.

int mvl2_video_from_sequence::seek ( int  frame_number) [virtual]

Move frame counter on to given frame if relevant.

Reimplemented from mvl2_video_reader.

Definition at line 188 of file mvl2_video_from_sequence.cxx.

virtual void mvl2_video_reader::set_brightness ( int  ) [inline, virtual, inherited]

Set the brightness of the picture.

Definition at line 83 of file mvl2_video_reader.h.

void mvl2_video_from_sequence::set_capture_size ( int  width,
int  height 
) [virtual]

Set the size of image captured.

Implements mvl2_video_reader.

Definition at line 177 of file mvl2_video_from_sequence.cxx.

virtual void mvl2_video_reader::set_colour ( int  ) [inline, virtual, inherited]

Set the colour of the picture.

Definition at line 89 of file mvl2_video_reader.h.

virtual void mvl2_video_reader::set_contrast ( int  ) [inline, virtual, inherited]

Set the contrast of the picture.

Definition at line 92 of file mvl2_video_reader.h.

void mvl2_video_from_sequence::set_frame_rate ( double  frame_rate) [virtual]

Set the frame rate in frames per second.

Implements mvl2_video_reader.

Definition at line 157 of file mvl2_video_from_sequence.cxx.

virtual void mvl2_video_reader::set_hue ( int  ) [inline, virtual, inherited]

Set the hue of the picture.

Definition at line 86 of file mvl2_video_reader.h.

virtual void mvl2_video_reader::set_whiteness ( int  ) [inline, virtual, inherited]

Set the whiteness of the picture.

Definition at line 95 of file mvl2_video_reader.h.

void mvl2_video_from_sequence::uninitialize ( ) [virtual]

Tidy up.

Reimplemented from mvl2_video_reader.

Definition at line 101 of file mvl2_video_from_sequence.cxx.

bool mvl2_video_reader::use_config ( vcl_string  configname) [inherited]

Use the configuration given by the configuration's name.

Definition at line 100 of file mvl2_video_reader.cxx.


Member Data Documentation

vcl_vector<vcl_string> mvl2_video_reader::config_filenames_ [protected, inherited]

Definition at line 118 of file mvl2_video_reader.h.

vcl_vector<vcl_string> mvl2_video_reader::config_names_ [protected, inherited]

Definition at line 115 of file mvl2_video_reader.h.

vcl_vector<vcl_pair<int,int > > mvl2_video_reader::config_sizes_ [protected, inherited]

Definition at line 116 of file mvl2_video_reader.h.

vcl_vector<vcl_string> mvl2_video_reader::config_strings_ [protected, inherited]

Definition at line 117 of file mvl2_video_reader.h.

unsigned int mvl2_video_reader::current_frame_ [protected, inherited]

Definition at line 110 of file mvl2_video_reader.h.

Definition at line 69 of file mvl2_video_from_sequence.h.

bool mvl2_video_reader::firstcall_ [protected, inherited]

Definition at line 114 of file mvl2_video_reader.h.

double mvl2_video_reader::frame_rate_ [mutable, protected, inherited]

Definition at line 111 of file mvl2_video_reader.h.

int mvl2_video_reader::height_ [mutable, protected, inherited]

Definition at line 113 of file mvl2_video_reader.h.

bool mvl2_video_reader::is_initialized_ [protected, inherited]

Definition at line 109 of file mvl2_video_reader.h.

vcl_vector<vcl_string> mvl2_video_from_sequence::list_files_ [private]

Definition at line 72 of file mvl2_video_from_sequence.h.

Definition at line 68 of file mvl2_video_from_sequence.h.

Definition at line 70 of file mvl2_video_from_sequence.h.

bool mvl2_video_reader::use_colour_ [protected, inherited]

Definition at line 108 of file mvl2_video_reader.h.

Definition at line 71 of file mvl2_video_from_sequence.h.

int mvl2_video_reader::width_ [mutable, protected, inherited]

Definition at line 112 of file mvl2_video_reader.h.


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