Public Member Functions

ImageSource Class Reference

#include <ImageSource.h>

Inheritance diagram for ImageSource:
CVImageSource CVCameraSource CVVideoSource

List of all members.

Public Member Functions

virtual const char * getDescription () const =0
virtual int getNumberOfImages () const =0
virtual bool hasNextImage ()=0
virtual IplImage * getNextImage ()=0

Detailed Description

Abstract class that defines the methods an image source, i.e. provider, needs to implement.


Member Function Documentation

virtual const char* ImageSource::getDescription (  ) const [pure virtual]

This method should returns a single sentence describing the image source.

Implemented in CVCameraSource, and CVVideoSource.

virtual IplImage* ImageSource::getNextImage (  ) [pure virtual]

This method should return the next image.

Note:
The deallocation of the returned image is up to the program.
Returns:
Next image, or NULL in case of an error or if there is not any image left for processing

Implemented in CVImageSource.

virtual int ImageSource::getNumberOfImages (  ) const [pure virtual]

This method should return the number of available images.

Returns:
Number of available images (>= 0)

Implemented in CVCameraSource, and CVVideoSource.

virtual bool ImageSource::hasNextImage (  ) [pure virtual]

This method should return true in case there are more images that can be fetched using getNextImage()

Returns:
true = one or more images available, false = no images

Implemented in CVCameraSource, and CVVideoSource.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Defines