dicinterpfactory.hpp¶
Functions
-
inline std::unique_ptr<Interpolator> make_interp(util::InterpRoutine routine, const Image &img)¶
Factory function for creating interpolator instances.
- Parameters:
routine – Interpolation method to use.
img – reference to the image data in row-major order.
- Throws:
std::invalid_argument – if
routineis not a recognised method.- Returns:
A
unique_ptrto the constructed Interpolator.
-
inline std::unique_ptr<Interpolator> make_interp(util::InterpRoutine routine, const std::string &image_str)¶