#ifndef CLITKEXTRACTMEDIASTINUMFILTER_H
#define CLITKEXTRACTMEDIASTINUMFILTER_H
-#include "clitkFilterBase.h"
-#include "clitkFilterWithAnatomicalFeatureDatabaseManagement.h"
+#include "clitkStructuresExtractionFilter.h"
namespace clitk {
template <class TImageType>
class ITK_EXPORT ExtractMediastinumFilter:
- public virtual clitk::FilterBase,
- public clitk::FilterWithAnatomicalFeatureDatabaseManagement,
- public itk::ImageToImageFilter<TImageType, itk::Image<uchar, 3> >
+ public clitk::StructuresExtractionFilter<TImageType>
{
public:
typedef typename MaskSliceType::PointType MaskSlicePointType;
/** Standard class typedefs. */
- typedef itk::ImageToImageFilter<TImageType, MaskImageType> Superclass;
+ // typedef itk::ImageToImageFilter<TImageType, MaskImageType> Superclass;
+ typedef clitk::StructuresExtractionFilter<TImageType> Superclass;
typedef ExtractMediastinumFilter Self;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
MaskImagePixelType fgLeftLung=1, MaskImagePixelType fgRightLung=2);
void SetInputBonesLabelImage(const MaskImageType * image, MaskImagePixelType bg=0);
void SetInputTracheaLabelImage(const MaskImageType * image, MaskImagePixelType bg=0);
-
- // Output filename (for AFBD)
+
+ // Output filename (for AFBD)
itkSetMacro(OutputMediastinumFilename, std::string);
itkGetConstMacro(OutputMediastinumFilename, std::string);
itkSetMacro(BackgroundValueBones, MaskImagePixelType);
itkGetConstMacro(BackgroundValueBones, MaskImagePixelType);
- itkGetConstMacro(BackgroundValue, MaskImagePixelType);
- itkGetConstMacro(ForegroundValue, MaskImagePixelType);
-
itkSetMacro(ForegroundValueLeftLung, MaskImagePixelType);
itkGetConstMacro(ForegroundValueLeftLung, MaskImagePixelType);
virtual void GenerateOutputInformation();
virtual void GenerateInputRequestedRegion();
virtual void GenerateData();
-
- itkSetMacro(BackgroundValue, MaskImagePixelType);
- itkSetMacro(ForegroundValue, MaskImagePixelType);
-
+
MaskImagePixelType m_BackgroundValuePatient;
MaskImagePixelType m_BackgroundValueLung;
MaskImagePixelType m_BackgroundValueBones;
MaskImagePixelType m_ForegroundValueLeftLung;
MaskImagePixelType m_ForegroundValueRightLung;
- MaskImagePixelType m_BackgroundValue;
- MaskImagePixelType m_ForegroundValue;
-
MaskImagePointer output;
MaskImagePointer patient;
MaskImagePointer lung;