X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=filters%2FclitkImageFillRegionGenericFilter.h;h=1ef79ee140b085d36ea4e09a3d5cd1da3a000d2a;hb=711d2abc875d5e997b5cdbf762ca5c7c67df6719;hp=ea128b9a214350a0809b3b8617a31444af53494a;hpb=931a42358442f4ee4f314613c991c838d4b4e3b7;p=clitk.git diff --git a/filters/clitkImageFillRegionGenericFilter.h b/filters/clitkImageFillRegionGenericFilter.h index ea128b9..1ef79ee 100644 --- a/filters/clitkImageFillRegionGenericFilter.h +++ b/filters/clitkImageFillRegionGenericFilter.h @@ -1,18 +1,22 @@ -/*------------------------------------------------------------------------- - - Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de - l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - --------------------------------------------------------------------------*/ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +======================================================================-====*/ #ifndef CLITKIMAGEFILLREGIONGENERICFILTER_H #define CLITKIMAGEFILLREGIONGENERICFILTER_H - /** ------------------------------------------------------------------- * @file clitkImageFillRegionGenericFilter.h @@ -35,7 +39,8 @@ namespace clitk { //-------------------------------------------------------------------- - class ImageFillRegionGenericFilter : public clitk::ImageToImageGenericFilter { + class ImageFillRegionGenericFilter: + public clitk::ImageToImageGenericFilter { public: @@ -45,7 +50,6 @@ namespace clitk { // Types typedef ImageFillRegionGenericFilter Self; - typedef ImageToImageGenericFilter Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; @@ -58,10 +62,13 @@ namespace clitk { void SetSphericRegion(std::vector & radius, std::vector & center); void SetSphericRegion(std::vector & radius); - // Update - void Update (); + //-------------------------------------------------------------------- + // Main function called each time the filter is updated + template + void UpdateWithInputImageType(); protected: + template void InitializeImageType(); double mPixelValue; int * mSize; int * mStart; @@ -70,12 +77,7 @@ namespace clitk { bool mSphericRegion; bool m_IsCentered; - - //-------------------------------------------------------------------- - template void Update_WithDim(); - template void Update_WithDimAndPixelType(); template void Update_WithDimAndPixelType_SphericRegion(); - //-------------------------------------------------------------------- }; // end class ImageFillRegionGenericFilter //--------------------------------------------------------------------