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

vetMotionIlluminationInvariant Class Reference

Source class for storing video data. More...

#include <vetMotionIlluminationInvariant.h>

Inheritance diagram for vetMotionIlluminationInvariant:

vetVision vetOutput vetObject

Public Member Functions

 vetMotionIlluminationInvariant (vetMotionIlluminationInvariantParameters *initParams=NULL)
 ~vetMotionIlluminationInvariant ()
VETRESULT setParameters (vetMotionIlluminationInvariantParameters *initParams)
vetMotionIlluminationInvariantParametersgetParameters ()
VETRESULT reset ()
 Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization.
VETRESULT importFrom (vetFrameYUV420 &img)
 Inherited class must implement this function, processing frames to specific output (device or stream).
VETRESULT importFrom (vetFrameRGB24 &img)
 Inherited class must implement this function, processing frames to specific output (device or stream).
VETRESULT importFrom (vetFrameT< unsigned char > &img)
 Inherited class must implement this function, processing frames to specific output (device or stream).

Static Public Member Functions

static int getIllumination (vetFrameRGB24 &source_img, vetFrameRGB24 &ill_img)
static int getReflectance (vetFrameT< unsigned char > &refl_img, vetFrameRGB24 &source_img)
static int getReflectance (vetFrameRGB24 &refl_img, vetFrameRGB24 &source_img)

Protected Member Functions

void initFrame (vetFrameRGB24 &img)
int evalDifference (vetFrameRGB24 &diff_img)
int evalDifference (vetFrameT< unsigned char > &diff_img)

Protected Attributes

vetMotionIlluminationInvariantParametersmyParams
vetFrameT< unsigned char > * reflectance
vetFrameT< unsigned char > * buffer
vetFrameT< unsigned char > * diff
float * reflectanceCurrent
float * reflectanceBuffer
long lastDiffValue

Detailed Description

Source class for storing video data.

Bug:
Warning:
Todo:
See also:
vetVision
Version:
0.8
Date:
12/07/2005 - //2005
Author:
Alessandro Polo
VETLib Framework 1.0.2 Copyright (C) Alessandro Polo 2006 http://www.ewgate.net/vetlib

Definition at line 49 of file vetMotionIlluminationInvariant.h.


Member Function Documentation

VETRESULT vetMotionIlluminationInvariant::importFrom vetFrameT< unsigned char > &  img  )  [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&)

Implements vetOutput.

Definition at line 157 of file vetMotionIlluminationInvariant.cpp.

References INFO, and VETRET_NOT_IMPLEMENTED.

VETRESULT vetMotionIlluminationInvariant::importFrom vetFrameRGB24 img  )  [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 vetVision.

Definition at line 121 of file vetMotionIlluminationInvariant.cpp.

References buffer, diff, vetVision::doAlert(), vetVisionParameters::doAlert, vetVisionParameters::doEval, evalDifference(), getReflectance(), INFO, initFrame(), myParams, reflectance, and VETRET_OK.

VETRESULT vetMotionIlluminationInvariant::importFrom vetFrameYUV420 img  )  [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 vetVision.

Definition at line 148 of file vetMotionIlluminationInvariant.cpp.

References INFO, and VETRET_NOT_IMPLEMENTED.

VETRESULT vetMotionIlluminationInvariant::reset  )  [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.

Implements vetVision.

Definition at line 60 of file vetMotionIlluminationInvariant.cpp.

References vetVision::alertCallArgument, buffer, INFO, lastDiffValue, reflectance, vetObject::setDescription(), vetObject::setName(), vetObject::setVersion(), and VETRET_OK.

Referenced by vetMotionIlluminationInvariant().


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