X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImage2DicomRTStructFilter.h;h=9455eabb8ba3a65fb74c1879ac6679c34bf371b0;hb=19b462067f2b839ebb7e7cc8ba84aa14f4152e8b;hp=749a0be5f9685fbd9ec752e7436943060bf7bada;hpb=eddba34cfd972c817bdfba337a9c866b3ae5c410;p=clitk.git diff --git a/common/clitkImage2DicomRTStructFilter.h b/common/clitkImage2DicomRTStructFilter.h index 749a0be..9455eab 100644 --- a/common/clitkImage2DicomRTStructFilter.h +++ b/common/clitkImage2DicomRTStructFilter.h @@ -2,7 +2,7 @@ Program: vv http://www.creatis.insa-lyon.fr/rio/vv Main authors : XX XX XX - Authors belongs to: + Authors belongs to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr @@ -31,7 +31,7 @@ namespace clitk { //-------------------------------------------------------------------- template class Image2DicomRTStructFilter: public clitk::FilterBase { - + public: Image2DicomRTStructFilter(); ~Image2DicomRTStructFilter(); @@ -41,18 +41,32 @@ namespace clitk { typedef typename clitk::DicomRT_StructureSet::Pointer DicomRTStructPointer; // Set inputs - itkSetMacro(Input, ImagePointer); - itkGetConstMacro(Input, ImagePointer); - + virtual void SetInputFilenames (const std::vector _arg) + { + if ( this->m_InputFilenames != _arg ) + { + this->m_InputFilenames = _arg; + this->Modified(); + } + } + itkSetMacro(StructureSetFilename, std::string); + itkSetMacro(DicomFolder, std::string); + itkSetMacro(OutputFilename, std::string); + void SetROIType(std::string type); + itkSetMacro(ThresholdValue, PixelType); + itkSetMacro(SkipInitialStructuresFlag, bool); + // Run filter - void Update(); - - // Get output - itkGetConstMacro(DicomRTStruct, DicomRTStructPointer); + void Update(); protected: - ImagePointer m_Input; - DicomRTStructPointer m_DicomRTStruct; + std::string m_StructureSetFilename; + std::string m_DicomFolder; + std::string m_OutputFilename; + std::string m_ROIType; + PixelType m_ThresholdValue; + std::vector m_InputFilenames; + bool m_SkipInitialStructuresFlag; }; //--------------------------------------------------------------------