X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkBooleanOperatorLabelImageFilter.h;h=71eccda75af9c5f66b71b1ffc8379995c492acc2;hb=417fa02691e61ff52abb5ce74c81d767755aca7e;hp=f81b4402a14cf2dbcc4f8995bb298e13b2992106;hpb=ff4abcacee4dbd9d93dfd6ee1ebb15918ebf1f95;p=clitk.git diff --git a/itk/clitkBooleanOperatorLabelImageFilter.h b/itk/clitkBooleanOperatorLabelImageFilter.h index f81b440..71eccda 100644 --- a/itk/clitkBooleanOperatorLabelImageFilter.h +++ b/itk/clitkBooleanOperatorLabelImageFilter.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef CLITKBOOLEANOPERATORLABELIMAGEFILTER_H #define CLITKBOOLEANOPERATORLABELIMAGEFILTER_H @@ -81,7 +81,8 @@ namespace clitk { // Set type of operation typedef enum { And = 0, - AndNot = 1 + AndNot = 1, + Or = 2 } OperationTypeEnumeration; itkGetMacro(OperationType, OperationTypeEnumeration); itkSetMacro(OperationType, OperationTypeEnumeration); @@ -105,7 +106,8 @@ namespace clitk { virtual void GenerateInputRequestedRegion(); virtual void GenerateData(); - virtual void ReleaseInputs() { } // Do not release date to keep input in memory and continue ... + // Do not release date to keep input in memory and continue ... + virtual void ReleaseInputs() { } Input1ImagePixelType mBackgroundValue1; Input2ImagePixelType mBackgroundValue2; @@ -120,6 +122,7 @@ namespace clitk { template void LoopAndNot(Iter1 it1, Iter1 it2, Iter2 ot); template void LoopAnd(Iter1 it1, Iter1 it2, Iter2 ot); + template void LoopOr(Iter1 it1, Iter1 it2, Iter2 ot); private: BooleanOperatorLabelImageFilter(const Self&); //purposely not implemented