#pragma once #ifndef _INTERPOLATION_H_ #define _INTERPOLATION_H_ #include "oc_array.h" #include "oc_image.h" #include "oc_point.h" namespace opencorr { class Interpolation2D { protected: Image2D* interp_img = nullptr; public: virtual ~Interpolation2D() = default; virtual void prepare() = 0; virtual float compute(Point2D& location) = 0; }; class Interpolation3D { protected: Image3D* interp_img = nullptr; public: virtual ~Interpolation3D() = default; virtual void prepare() = 0; virtual float compute(Point3D& location) = 0; }; }//namespace opencorr #endif //_INTERPOLATION_H_