Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

vetVision Class Reference

Base class for all Motion Detection modules. Simplify alert call and implements some common methods. More...

#include <vetVision.h>

Inheritance diagram for vetVision:

vetOutput vetObject vetMotionIlluminationInvariant vetMotionLame

Public Types

enum  
 Ignore this, it's a class-type definition, mostly used by VETLib WorkShop, sintax is a bit more complex than usual because of a VC6 BUG, it's the same as: const int vetClassType = VETCLASS_TYPE_OBJECT;.

Public Member Functions

 vetVision ()
 Default constructor call vetInput constructor which setup frame rate, initialize description arrays and set default name (should be updated).
virtual ~vetVision ()
 Destructor currenly clear only filters description strings.
void setAlertCall (void *(*functionCall)(void *))
void setAlertCallArgument (void *arg)
void * getAlertCallArgument ()
virtual VETRESULT reset ()=0
 Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization.
virtual VETRESULT importFrom (vetFrameYUV420 &img)=0
 Inherited class must implement this function, processing frames to specific output (device or stream).
virtual VETRESULT importFrom (vetFrameRGB24 &img)=0
 Inherited class must implement this function, processing frames to specific output (device or stream).
virtual VETRESULT importFrom (vetFrameT< unsigned int > &img)=0
 Inherited class must implement this function, processing frames to specific output (device or stream).

Static Public Member Functions

static VETRESULT getDifference (vetFrameT< unsigned char > &diff_img, vetFrameT< unsigned char > &source_img, vetFrameT< unsigned char > &second_img)
static VETRESULT getDifference (vetFrameT< int > &diff_img, vetFrameT< int > &source_img, vetFrameT< int > &second_img)
static VETRESULT getDifference (vetFrameT< float > &diff_img, vetFrameT< float > &source_img, vetFrameT< float > &second_img)
static VETRESULT getDifference (vetFrameYUV420 &diff_img, vetFrameYUV420 &source_img, vetFrameYUV420 &second_img)
static VETRESULT getDifference (vetFrameRGB24 &diff_img, vetFrameRGB24 &source_img, vetFrameRGB24 &second_img)

Protected Member Functions

void doAlert ()

Protected Attributes

void * alertCallArgument

Detailed Description

Base class for all Motion Detection modules. Simplify alert call and implements some common methods.

Bug:
Warning:
Todo:
See also:
vetOutput
Version:
1.0.2
Date:
18/09/2005
Author:
Alessandro Polo
VETLib Framework 1.0.2 Copyright (C) Alessandro Polo 2006 http://www.ewgate.net/vetlib

Definition at line 41 of file vetVision.h.


Constructor & Destructor Documentation

vetVision::vetVision  ) 
 

Default constructor call vetInput constructor which setup frame rate, initialize description arrays and set default name (should be updated).

Parameters:
fps Frame per second value, default is 0, the max input+processing rate.

Definition at line 27 of file vetVision.cpp.

References alertCallArgument, vetObject::setDescription(), vetObject::setName(), and vetObject::setVersion().


Member Function Documentation

virtual VETRESULT vetVision::importFrom vetFrameT< unsigned int > &  img  )  [pure virtual]
 

Inherited class must implement this function, processing frames to specific output (device or stream).

Parameters:
[in] img Greyscale VETLib Frame to be processed (encoded for example)
Returns:
VETRET_OK if everything is fine, VETRET_PARAM_ERR if frame is not valid, VETRET_INTERNAL_ERR or VETRET_ILLEGAL_USE else.
Note:
Input operator (<<) call directly this function.
See also:
operator << (vetFrameT&)

virtual VETRESULT vetVision::importFrom vetFrameRGB24 img  )  [pure virtual]
 

Inherited class must implement this function, processing frames to specific output (device or stream).

Parameters:
[in] img VETLib Cache24 Frame to be processed (encoded for example)
Returns:
VETRET_OK if everything is fine, VETRET_PARAM_ERR if frame is not valid, VETRET_INTERNAL_ERR or VETRET_ILLEGAL_USE else.
Note:
Input operator (<<) call directly this function.
See also:
operator << (vetFrameRGB24&)

Implements vetOutput.

Implemented in vetMotionIlluminationInvariant, and vetMotionLame.

virtual VETRESULT vetVision::importFrom vetFrameYUV420 img  )  [pure virtual]
 

Inherited class must implement this function, processing frames to specific output (device or stream).

Parameters:
[in] img VETLib Cache Frame to be processed (encoded for example)
Returns:
VETRET_OK if everything is fine, VETRET_PARAM_ERR if frame is not valid, VETRET_INTERNAL_ERR or VETRET_ILLEGAL_USE else.
Note:
Input operator (<<) call directly this function.
See also:
operator << (vetFrameYUV420&)

Implements vetOutput.

Implemented in vetMotionIlluminationInvariant, and vetMotionLame.

virtual VETRESULT vetVision::reset  )  [pure virtual]
 

Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization.

Returns:
VETRET_OK if everything is fine, VETRET_INTERNAL_ERR or VETRET_ILLEGAL_USE else.

Implemented in vetMotionIlluminationInvariant, and vetMotionLame.


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 11:59:43 2006 for VETLib by  doxygen 1.4.4