/*========================================================================= Program: clitk Module: $RCSfile: clitkMedianImageGenericFilter.h,v $ Language: C++ Date: $Date: 2010/07/23 14:56:21 $ Version: $Revision: 1.1 $ Author : Bharath Navalpakkam Copyright (C) 2010 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr CREATIS http://www.creatis.insa-lyon.fr This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . =========================================================================*/ #ifndef CLITKMEDIANIMAGEGENERICFILTER_H #define CLITKMEDIANIMAGEGENERICFILTER_H // clitk include #include "clitkIO.h" #include "clitkCommon.h" #include "clitkImageToImageGenericFilter.h" //-------------------------------------------------------------------- namespace clitk { template class ITK_EXPORT MedianImageGenericFilter: public ImageToImageGenericFilter > { public: //-------------------------------------------------------------------- MedianImageGenericFilter(); //-------------------------------------------------------------------- typedef MedianImageGenericFilter Self; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; //-------------------------------------------------------------------- // Method for creation through the object factory // and Run-time type information (and related methods) itkNewMacro(Self); itkTypeMacro(MedianImageGenericFilter, LightObject); //-------------------------------------------------------------------- void SetArgsInfo(const args_info_type & a); //-------------------------------------------------------------------- // Main function called each time the filter is updated template void UpdateWithInputImageType(); protected: template void InitializeImageType(); args_info_type mArgsInfo; }; // end class //-------------------------------------------------------------------- } // end namespace clitk #ifndef ITK_MANUAL_INSTANTIATION #include "clitkMedianImageGenericFilter.txx" #endif #endif // #define clitkMedianImageGenericFilter_h