#include #include "image_lut.h" namespace image { template Image create_lut(int channels, int width, int points, std::vector data) { Image out(data.data(), sizeof(T) * 8, points, 1, channels); out.resize_bilinear(width, 1, false); return out; } template Image LUT_jet() { return create_lut(3, 256, 4, { 0, 0, std::numeric_limits::max(), std::numeric_limits::max(), 0, std::numeric_limits::max(), std::numeric_limits::max(), 0, std::numeric_limits::max(), std::numeric_limits::max(), 0, 0 }); } template Image create_lut(int, int, int, std::vector); template Image create_lut(int, int, int, std::vector); template Image LUT_jet(); template Image LUT_jet(); }