More generic function.

This commit is contained in:
Ian Gulliver
2017-08-13 12:16:40 -07:00
parent 7a47fc4a56
commit e6966352ec

View File

@@ -105,7 +105,7 @@ std::unique_ptr<Image<X, Y, RgbColor>> HighlightClosest(const Image<X, Y, RgbCol
} }
template <int32_t LUT_X, int32_t LUT_Y, int32_t LUT_Z, int32_t IMG_X, int32_t IMG_Y> template <int32_t LUT_X, int32_t LUT_Y, int32_t LUT_Z, int32_t IMG_X, int32_t IMG_Y>
int32_t OptimizeLut(const Image<IMG_X, IMG_Y, RgbColor>& image, Lut3d<LUT_X, LUT_Y, LUT_Z>* lut) { int32_t OptimizeLut(const ImageColorBase<RgbColor>& image, Lut3d<LUT_X, LUT_Y, LUT_Z>* lut) {
auto snapshot = *lut; auto snapshot = *lut;
int32_t diff = 0; int32_t diff = 0;