Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxUpoTriStateThreshold Class Template Reference

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

List of all members.

Public Types

typedef HxTagTransInVar TransVarianceCategory
 Functor is translation invariant. More...


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.


Member Typedef Documentation

template<class DstValT, class SrcValT>
typedef HxTagTransInVar HxUpoTriStateThreshold::TransVarianceCategory
 

Functor is translation invariant.


Constructor & Destructor Documentation

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

Constructor : get parameters from taglist.

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


Member Function Documentation

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

Actual operation.

00053 {
00054     if (x < _level)
00055         return _v1;
00056     if (x > _level)
00057         return _v3;
00058     return _v2;
00059 }

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

The name : "triStateThreshold".

00064 {
00065     return HxString("triStateThreshold");
00066 }


The documentation for this class was generated from the following file:
Generated on Tue Feb 3 14:19:10 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001