diff --git a/colorchecker.h b/colorchecker.h index 41d7821..c40e2de 100644 --- a/colorchecker.h +++ b/colorchecker.h @@ -69,7 +69,7 @@ Array, kColorCheckerSrgb.size()> FindClosest(const Image& imag } template -int32_t ScoreLut(const Image& image, const Lut& lut) { +int32_t ScoreLut(const Image& image, const LutBase& lut) { static_assert(C == 3); Array diff; diff --git a/lut.cc b/lut.cc index 48f83df..0f2e00f 100644 --- a/lut.cc +++ b/lut.cc @@ -1,4 +1,4 @@ #include "lut.h" -Lut::~Lut() { +LutBase::~LutBase() { } diff --git a/lut.h b/lut.h index 65502de..f8d12aa 100644 --- a/lut.h +++ b/lut.h @@ -5,11 +5,11 @@ #include "coord.h" #include "image.h" -class Lut { +class LutBase { public: - Lut() = default; - Lut(const Lut&) = default; - virtual ~Lut(); + LutBase() = default; + LutBase(const LutBase&) = default; + virtual ~LutBase(); virtual Color<3> MapColor(const Color<3>& in) const = 0; @@ -18,7 +18,7 @@ class Lut { }; template -std::unique_ptr> Lut::MapImage(const Image& in) const { +std::unique_ptr> LutBase::MapImage(const Image& in) const { auto out = std::make_unique>(); for (int32_t y = 0; y < Y; ++y) { @@ -33,7 +33,7 @@ std::unique_ptr> Lut::MapImage(const Image& in) const { template -class Lut3d : public Array, X>, Y>, Z>, public Lut { +class Lut3d : public Array, X>, Y>, Z>, public LutBase { public: static Lut3d Identity();