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

Display RGB operation for 2D images

The pattern loops over all pixels in the image and converts the pixel value to an integer in ARGB formats for display purposes. The result is written to the given integer buffer.

Instantiations of the pattern are invoked via

Instantiation is done via the HxImgFtorRgb2d functor, with the following template parameters: The requirements on the RgbT template parameter expressed as a class definition are:

template<class ValT, class ValDoubleT>
class RgbT
{
public:
                        RgbT(HxTagList& tags);

    int                 doIt(const ValT& pixV);

    int                 doItDouble(const ValDoubleT& pixV);

    static HxString     className();
};

Depending on the display parameters set by the GUI the function doIt will be called with 1 parameter of type ImgSigT::ArithType or the doItDouble function will be called with 1 parameter of type ImgSigT::ArithTypeDouble.

Example(s):

For further reference :
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