Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxUpoTriStateThreshold Class Template Reference

Pixel functor for computation of tri state threshold. More...

List of all members.

Public Methods

 HxUpoTriStateThreshold (HxTagList &)
 Constructor : get parameters from taglist. More...

DstValT doIt (const SrcValT &x)
 Actual operation. More...


Static Public Methods

HxString className ()
 The name : "triStateThreshold". More...


Detailed Description

template<class DstValT, class SrcValT>
class HxUpoTriStateThreshold< DstValT, SrcValT >

Pixel functor for computation of tri state threshold.


Constructor & Destructor Documentation

template<class DstValT, class SrcValT>
HxUpoTriStateThreshold< DstValT, SrcValT >::HxUpoTriStateThreshold HxTagList   tl
 

Constructor : get parameters from taglist.

00040 {
00041     _level = HxGetTag<HxValue>(tl, "level");
00042     _v1 = HxGetTag<HxValue>(tl, "v1");
00043     _v2 = HxGetTag<HxValue>(tl, "v2");
00044     _v3 = HxGetTag<HxValue>(tl, "v3");
00045 }


Member Function Documentation

template<class DstValT, class SrcValT>
DstValT HxUpoTriStateThreshold< DstValT, SrcValT >::doIt const SrcValT &    x [inline]
 

Actual operation.

00050 {
00051     if (x < _level)
00052         return _v1;
00053     if (x > _level)
00054         return _v3;
00055     return _v2;
00056 }

template<class DstValT, class SrcValT>
HxString HxUpoTriStateThreshold< DstValT, SrcValT >::className   [static]
 

The name : "triStateThreshold".

00061 {
00062     return HxString("triStateThreshold");
00063 }


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 13:59:36 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001