You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
617 B
40 lines
617 B
|
|
|
|
#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_
|
|
|