]> Creatis software - creaRigidRegistration.git/blobdiff - lib/Substraction.h
Added template methods
[creaRigidRegistration.git] / lib / Substraction.h
index b8f5cfba216f3e0b3592a016e49519ae0db0d4fd..747caf44f6cb32c94fcafed82dd4abecf1112dee 100644 (file)
@@ -42,6 +42,11 @@ class Substraction
                constructing image substract
                */
                void substract(vtkImageData* imageData1, vtkImageData* imageData2);
+
+               /*
+               Template method of substract for different image types
+               */
+               template <class T> void substractByType(T* dataImagePointer1, T* dataImagePointer2, T* dataImageResultPointer, vtkImageData *imageData1, vtkImageData *imageData2);
                
 
 
@@ -81,4 +86,5 @@ class Substraction
                Image type
                */
                int imageType;
-};
\ No newline at end of file
+};
+