X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImageCommon.h;h=9e61223e0ab77484ed6566f1c0f91c2bea4fb0b7;hb=f9ba8e0c066f58c8d9f2b10db4306f42470fe7a2;hp=11bdb8f2efc46a9c807a3942637d84316a4f5b07;hpb=54b8c7f94d9e9bef840ba88a7b195b51960f8220;p=clitk.git diff --git a/common/clitkImageCommon.h b/common/clitkImageCommon.h index 11bdb8f..9e61223 100644 --- a/common/clitkImageCommon.h +++ b/common/clitkImageCommon.h @@ -17,18 +17,9 @@ ======================================================================-====*/ #ifndef CLITKIMAGECOMMON_H #define CLITKIMAGECOMMON_H -/** - ------------------------------------------------------------------- - * @file clitkImageCommon.h - * @author David Sarrut - * @date 07 Sep 2007 11:30:10 - - * @brief - - -------------------------------------------------------------------*/ // clitk -#include "clitkCommon.h" +//#include "clitkCommon.h" // itk #include "itkImage.h" @@ -38,7 +29,6 @@ #include "gdcmFile.h" #include "gdcmFileHelper.h" - namespace clitk { //-------------------------------------------------------------------- @@ -103,6 +93,24 @@ namespace clitk { std::map > & mapOfLabelsAndWeights); + //-------------------------------------------------------------------- + template + bool HaveSameSizeAndSpacing(typename ImageType1::ConstPointer A, + typename ImageType2::ConstPointer B); + + template + bool HaveSameSizeAndSpacing(typename ImageType1::Pointer A, + typename ImageType2::Pointer B); + + //-------------------------------------------------------------------- + template + bool HaveSameSpacing(typename ImageType1::ConstPointer A, + typename ImageType2::ConstPointer B); + + template + bool HaveSameSpacing(typename ImageType1::Pointer A, + typename ImageType2::Pointer B); + #include "clitkImageCommon.txx" } // end namespace