#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... |
|
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 } |