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

Translation variant multi pixel operation

Pseudo code of the operation:

MultiPixOp(Dst, Src[], Mpo)
{
    foreach d, s, in Dst, Src[]
        Dst(d) = Mpo.doIt(Src[0](s) ... Src[N](s), s.x, s.y, s.z);
}

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

template<class DstValT, class SrcValT>
class MpoT
{
public:
    typedef HxTagTransVar       TransVarianceCategory;

                    MpoT(HxTagList& tags);

    DstValT         doIt(SrcValT const *v, int x, int y, int z);

    static HxString className();
};

The function doIt will be called with an array containing the pixels of the source images. On construction, the number of sources can be retrieved from the tag list by tag "sourceCnt". The result will be stored in a variable of type DstImgSigT::ArithType before being written to the destination image.


Return to patterns.


Generated on Mon Jan 27 15:49:13 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001