#include "HxImageRep.h"
#include <map>
#include <vector>
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... | |
HxImageRep L_HXIMAGEREP | HxLUT (HxImageRep im, std::vector< 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 DK NOTE : function crashses when called from outside the hximagerep dll. probably because the mp access functions are not declared with the proper linkage specification. DK NOTE : for some reason (?) the result obtained from the map is clipped |