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
//--------------------------------------------------------------------
template<class PixelType>
class Image2DicomRTStructFilter: public clitk::FilterBase {
-
+
public:
Image2DicomRTStructFilter();
~Image2DicomRTStructFilter();
typedef typename clitk::DicomRT_StructureSet::Pointer DicomRTStructPointer;
// Set inputs
- itkSetMacro(InputFilenames, std::vector<std::string> );
+ virtual void SetInputFilenames (const std::vector<std::string> _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();
-
+ void Update();
+
protected:
std::string m_StructureSetFilename;
std::string m_DicomFolder;
/*=========================================================================
Program: vv http://www.creatis.insa-lyon.fr/rio/vv
- Authors belong to:
+ Authors belong 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
// clitk include
#include "clitkIO.h"
#include "clitkImageCommon.h"
-#include "clitkMorphoMath_ggo.h"
#include "clitkConditionalBinaryErodeImageFilter.h"
#include "clitkConditionalBinaryDilateImageFilter.h"
//--------------------------------------------------------------------
template<class ImageType>
- class ITK_EXPORT MorphoMathFilter:
- public clitk::FilterBase,
- public itk::ImageToImageFilter<ImageType, ImageType>
+ class ITK_EXPORT MorphoMathFilter:
+ public clitk::FilterBase,
+ public itk::ImageToImageFilter<ImageType, ImageType>
{
-
- public:
+
+ public:
/** Standard class typedefs. */
typedef itk::ImageToImageFilter<ImageType, ImageType> Superclass;
typedef MorphoMathFilter<ImageType> Self;
typedef itk::SmartPointer<const Self> ConstPointer;
/** Method for creation through the object factory. */
- itkNewMacro(Self);
-
+ itkNewMacro(Self);
+
/** Run-time type information (and related methods). */
itkTypeMacro(AddRelativePositionConstraintToLabelImageFilter, ImageToImageFilter);
FILTERBASE_INIT;
/** Some convenient typedefs. */
typedef typename ImageType::ConstPointer ImageConstPointer;
typedef typename ImageType::Pointer ImagePointer;
- typedef typename ImageType::RegionType RegionType;
+ typedef typename ImageType::RegionType RegionType;
typedef typename ImageType::PixelType PixelType;
typedef typename ImageType::SpacingType SpacingType;
typedef typename ImageType::SizeType SizeType;
typedef typename ImageType::PointType PointType;
typedef float InternalPixelType;
typedef itk::Image<InternalPixelType, ImageType::ImageDimension> InternalImageType;
-
+
/** ImageDimension constants */
itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
typedef itk::Image<float, ImageDimension> FloatImageType;
/** Operation types */
typedef enum { Erode = 0, Dilate = 1,
- Close = 2, Open = 3,
+ Close = 2, Open = 3,
CondErode = 4, CondDilate = 5
} OperationTypeEnumeration;
-
+
/** Options */
itkGetConstMacro(VerboseFlag, bool);
itkSetMacro(VerboseFlag, bool);
itkSetMacro(ForegroundValue, PixelType);
void SetOperationType(int type);
-
+
itkGetConstMacro(RadiusInMM, PointType);
void SetRadiusInMM(PointType & p);
itkGetConstMacro(BoundaryToForegroundFlag, bool);
itkSetMacro(BoundaryToForegroundFlag, bool);
itkBooleanMacro(BoundaryToForegroundFlag);
-
+
itkGetConstMacro(ExtendSupportFlag, bool);
itkSetMacro(ExtendSupportFlag, bool);
itkBooleanMacro(ExtendSupportFlag);
-
+
protected:
MorphoMathFilter();
virtual ~MorphoMathFilter();
MorphoMathFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
};
-
+
} // end namespace clitk
#ifndef ITK_MANUAL_INSTANTIATION
#include "clitkMorphoMathFilter.txx"
#endif
-
+
#endif //#define CLITKMORPHOMATHFILTER_H
TARGET_LINK_LIBRARIES(clitkTransformLandmarks clitkCommon)
SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkTransformLandmarks)
- WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
- ADD_EXECUTABLE(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
- TARGET_LINK_LIBRARIES(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
- SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
-
WRAP_GGO(clitkMaskLandmarks_GGO_C clitkMaskLandmarks.ggo)
ADD_EXECUTABLE(clitkMaskLandmarks clitkMaskLandmarks.cxx ${clitkMaskLandmarks_GGO_C})
TARGET_LINK_LIBRARIES(clitkMaskLandmarks clitkCommon)
#=========================================================
IF(ITK_VERSION_MAJOR VERSION_LESS 4)
+ MESSAGE("clitkDice is not compatible with ITK<4. It will not be built.")
MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
ELSE(ITK_VERSION_MAJOR VERSION_LESS 4)
+ WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
+ ADD_EXECUTABLE(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
+ TARGET_LINK_LIBRARIES(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
+ SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
+
WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
ADD_EXECUTABLE(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
TARGET_LINK_LIBRARIES(clitkDicomRTPlan2Gate clitkCommon)