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

Translation variant, n phase pixel export operation

Pseudo code of the operation:

OutPixOp(In, PixOp)
{
    for p = 1 to PixOp.nrPhases();
    {
        PixOp.init(p)
        foreach i in In
            PixOp.doIt(In(i), i.x, i.y, i.z);
        PixOp.done(p)
    }
}

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

template<class ArithT>
class PixOpT
{
public:
    typedef HxTagPixOpOut   DirectionCategory;
    typedef HxTagTransVar   TransVarianceCategory;
    typedef HxTagNPhase     PhaseCategory;

                        PixOpT(HxTagList&, int w, int h, int d);

    void                doIt(const ArithT& v, int x, int y, int z);

    int                 nrPhases() const;
    void                init(int phase);
    void                done(int phase);

    static HxString     className();
};


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