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

HxLUT.h File Reference

More...

#include "HxImageRep.h"
#include <map>

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxLUT (HxImageRep im, std::map< int, int > *lut)
 this function implements the Look Up Table (LUT) operation the user has to prepare the map of equivalences. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxLUT HxImageRep    im,
std::map< int, int > *    lut
 

this function implements the Look Up Table (LUT) operation the user has to prepare the map of equivalences.

<oldValue, newValue> pass the pointer to this map<int,int> Remark: for 3DByte pixel type, we encode the 3 values into an int as: (z<<16) | (y<<8) | x

00143 {
00144     HxImageRep out;
00145 
00146     HxTagList tags;
00147     HxAddTag(tags,"LUTPointer",lut);
00148     out = im.unaryPixOp("lut", tags);
00149 
00150     return out;
00151 }


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