Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

AxisSource Class Reference

A class which implements the ImageSource interface as a source of Images from the internet AxisCamera. More...

#include <AxisSource.h>

Inheritance diagram for AxisSource::

ImageSource List of all members.

Public Methods

 AxisSource (char *axis_name, FrameSize frame_size)
 Create an source of Images from the Internet Camera. More...

 AxisSource ()
 Default Constructer. More...

 ~AxisSource ()
 AxisSource destructor. More...

virtual ImageSourceoperator>> (ImageRGB &)
 Extract colour Image from stream from web server. More...

virtual ImageSourceoperator>> (ImageGrey &)
 Extract a greyscale Image from stream from web server. More...

virtual ImageSourceoperator>> (Image &)
 Extract a Image from stream from webserver. More...

int get_width ()
int get_height ()

Detailed Description

A class which implements the ImageSource interface as a source of Images from the internet AxisCamera.

Each image that is extracted from the AxisSource class is the next frame recieved from the webserver.

Definition at line 66 of file AxisSource.h.


Constructor & Destructor Documentation

AxisSource::AxisSource ( char * axis_name,
FrameSize frame_size )
 

Create an source of Images from the Internet Camera.

Parameters:
axis_name   The web server.
frame_size   Framesize, either HALF(0) or FULL(1).
dims   [0] The width of the Images to be produced.
dims   [1] The height of the Images to be produced.

Definition at line 24 of file AxisSource.cpp.

AxisSource::AxisSource ( )
 

Default Constructer.

Initialise the AxisSource to produce 352x288 images from "iridemo2"

Definition at line 65 of file AxisSource.cpp.

AxisSource::~AxisSource ( )
 

AxisSource destructor.

Closes the connection to the web server.

Definition at line 79 of file AxisSource.cpp.


Member Function Documentation

ImageSource & AxisSource::operator>> ( Image & img ) [virtual]
 

Extract a Image from stream from webserver.

The Image could be colour or greyscale depending on the default palette type for this class.

Parameters:
img   The Image to be extracted to.

Reimplemented from ImageSource.

Definition at line 157 of file AxisSource.cpp.

ImageSource & AxisSource::operator>> ( ImageGrey & img ) [virtual]
 

Extract a greyscale Image from stream from web server.

Parameters:
img   The greyscale Image to be extracted to.

Note: NOT fast. Still decodes colour JPEG to RGBA then to greyscale.

Reimplemented from ImageSource.

Definition at line 124 of file AxisSource.cpp.

ImageSource & AxisSource::operator>> ( ImageRGB & img ) [virtual]
 

Extract colour Image from stream from web server.

Parameters:
img   The colour Image to be extracted to.

source 'image' is RGBA unsigned chars, src_ptr is pointer to this image.

Reimplemented from ImageSource.

Definition at line 92 of file AxisSource.cpp.


The documentation for this class was generated from the following files:
Generated at Fri Aug 13 17:29:21 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001