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

Translation invariant unary pixel operation

Pseudo code of the operation:

UnaryPixOp(Dst, Src, Upo)
{
    foreach d, s in Dst, Src
        Dst(d) = Upo.doIt(Src(s));
}

The requirements on the UpoT template parameter expressed as class definition are:

template<class DstValT, class SrcValT>
class UpoT
{
public:
    typedef HxTagTransInVar     TransVarianceCategory;

                        UpoT(HxTagList&);

    DstValT             doIt(const SrcValT& v);

    static HxString     className();
};

The function doIt will be called with 1 parameter of type SrcImgSigT::ArithType, and the result will be stored in a variable of type DstImgSigT::ArithType before being written to the destination image.

Example(s):


Return to patterns.


Generated on Tue Feb 3 14:19:12 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001