]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKImageInterpolators/LinearInterpolateImageFunction.h
yet another refactoring
[cpPlugins.git] / plugins / ITKImageInterpolators / LinearInterpolateImageFunction.h
diff --git a/plugins/ITKImageInterpolators/LinearInterpolateImageFunction.h b/plugins/ITKImageInterpolators/LinearInterpolateImageFunction.h
new file mode 100644 (file)
index 0000000..a6fa94c
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef __cpPluginsITKImageInterpolators__LinearInterpolateImageFunction__h__
+#define __cpPluginsITKImageInterpolators__LinearInterpolateImageFunction__h__
+
+#include <cpPlugins_ITKImageInterpolators_Export.h>
+#include <ITKImageInterpolators/InterpolateImageFunction.h>
+
+namespace cpPluginsITKImageInterpolators
+{
+  /**
+   */
+  class cpPlugins_ITKImageInterpolators_EXPORT LinearInterpolateImageFunction
+    : public InterpolateImageFunction
+  {
+    cpPluginsObject(
+      LinearInterpolateImageFunction,
+      InterpolateImageFunction,
+      ITKImageInterpolators
+      );
+
+  public:
+    virtual void CreateInterpolator(
+      itk::LightObject* image,
+      const std::string& precision_type
+      ) cpPlugins_OVERRIDE;
+
+  protected:
+    template< class _TImage >
+    inline void _GD0( _TImage* image );
+
+    template< class _TImage, class _TScalar >
+    inline void _GD1( _TImage* image );
+  };
+
+} // ecapseman
+
+#endif // __cpPluginsITKImageInterpolators__LinearInterpolateImageFunction__h__
+
+// eof - $RCSfile$