62 template<
class RESULT_T=
float,
class IDX_T=
int>
71 LUT2D(RESULT_T (*generator_func)(IDX_T v1, IDX_T v2),IDX_T
minVal, IDX_T maxVal):
76 for(
int i=
minVal;i<maxVal;i++){
77 for(
int j=
minVal;j<maxVal;j++){
78 lut[i+
range*j] = generator_func(i,j);
undocument this line if you encounter any issues!
Definition: Any.h:37
int range
Definition: LUT2D.h:67
LUT2D(RESULT_T(*generator_func)(IDX_T v1, IDX_T v2), IDX_T minVal, IDX_T maxVal)
creating a new LUT2D object with given element creation function
Definition: LUT2D.h:71
int minVal
Definition: LUT2D.h:66
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
RESULT_T operator()(IDX_T v1, IDX_T v2) const
inline access in constant time of data element at (v1,v2)
Definition: LUT2D.h:87
Simple 2D indexed LUT Implementation.
Definition: LUT2D.h:63
~LUT2D()
destructor
Definition: LUT2D.h:83
RESULT_T * lut
Definition: LUT2D.h:65