Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
XVSegmentation Template Class Reference
The XVSegmentation takes images and does segmentation based on some user specified operation.
More...
#include <XVSegmentation.h>
Inheritance diagram for XVSegmentation:
List of all members.Public Methods
-
~XVSegmentation ()
-
virtual void update (const XVImageBase<T> &) = 0
-
virtual void segment (const XVImageBase<T> &, XVImageBase<Y> &)
- the segment function computes some value for each pixel in the color image (the first parameter) using the lookup table (which can be just about anything) and builds the scalar image (the second parameter) from those resulting values.
-
virtual void findCentroid (const XVImageScalar<Y> &, XVPosition &, int, bool (*pf) (const Y) = NULL)
-
virtual XVRectangleBlob& findBoundingBox (const XVImageBase<T> &, XVRectangleBlob &, bool (*pf) (const Y) = NULL)
-
virtual void regionGrow (const XVImageScalar<Y> &, vector<XVRectangleBlob> &, bool (*pf) (const Y) = NULL, int padding = DEFAULT_PADDING, int maxRegions = MAX_REGIONS, float ratio = M_TO_S_RATIO)
- void setCheck (bool (*pf) (const Y))
- u_int* getHistogram ()
Public Attributes
-
bool (* SEGFUNC )(const Y)
Protected Attributes
- int histSize
- int histArraySize
- u_int* histogram
- LookupTable<T,Y>* lookup
Private Types
- typedef T PIXELINTYPE
- typedef Y PIXELOUTTYPE
Detailed Description
template<class T, class Y> template class XVSegmentation
The XVSegmentation takes images and does segmentation based on some user specified operation.
Examples include segmentation based on color, motion, shape, etc.
NOTE: The XVSegmentation class is abstract (it doesn't have a constructor). So it must be extended to be of any use. It just acts as a holder for functions that are general enough for all types of segmentation. Please see XVColorSeg.h and XVMotionSeg.h for further information.
Definition at line 71 of file XVSegmentation.h.
Member Typedef Documentation
template<classT, classY> |
typedef T XVSegmentation<T, Y>::PIXELINTYPE [private]
|
|
template<classT, classY> |
typedef Y XVSegmentation<T, Y>::PIXELOUTTYPE [private]
|
|
Member Function Documentation
template<classT, classY> |
void XVSegmentation<T, Y>::setCheck (
|
bool(* pf)(const Y) ) [inline]
|
|
template<classT, classY> |
u_int * XVSegmentation<T, Y>::getHistogram (
|
) [inline]
|
|
Member Data Documentation
template<classT, classY> |
int XVSegmentation<T, Y>::histSize [protected]
|
|
template<classT, classY> |
int XVSegmentation<T, Y>::histArraySize [protected]
|
|
template<classT, classY> |
u_int * XVSegmentation<T, Y>::histogram [protected]
|
|
template<classT, classY> |
LookupTable< T,Y >* XVSegmentation<T, Y>::lookup [protected]
|
|
The documentation for this class was generated from the following file:
Generated at Thu Mar 29 22:37:29 2001 for XVision by
1.2.0 written by Dimitri van Heesch,
© 1997-2000