X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkBinaryImageToMeshFilter.h;h=f0d041638e5c50a26de43f18e8f28cbc8a9dabfd;hb=b8e5890d37dfd64409b9694f73c0be164a089e64;hp=0a36c36dd16a1fd69f1c4bd75c7bc204a1c6cc75;hpb=6986b996d66273ab7818c12f51cbf5ae049ac04e;p=clitk.git diff --git a/itk/clitkBinaryImageToMeshFilter.h b/itk/clitkBinaryImageToMeshFilter.h index 0a36c36..f0d0416 100644 --- a/itk/clitkBinaryImageToMeshFilter.h +++ b/itk/clitkBinaryImageToMeshFilter.h @@ -17,7 +17,7 @@ ======================================================================-====*/ #ifndef CLITKBINARYIMAGETOMESHFILTER_H -#define CLITKMESHTOBINARYIMAGEFILTER_H +#define CLITKBINARYIMAGETOMESHFILTER_H // clitk #include "clitkCommon.h" @@ -42,13 +42,12 @@ namespace clitk { -------------------------------------------------------------------- */ template - class ITK_EXPORT BinaryImageToMeshFilter:public itk::Object //:public clitk::FilterBase + class ITK_EXPORT BinaryImageToMeshFilter:public itk::Object { public: /** Standard class typedefs. */ - // typedef itk::ImageToMeshFilter Superclass; - typedef itk::ProcessObject Superclass; + typedef itk::ProcessObject Superclass; typedef BinaryImageToMeshFilter Self; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; @@ -63,48 +62,14 @@ namespace clitk { itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); // /** Some convenient typedefs. */ - // typedef typename ImageType::ConstPointer ImageConstPointer; typedef typename ImageType::Pointer ImagePointer; - // 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 itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType; - // typedef vtkSmartPointer DataObjectPointer; - - // using Superclass::SetInput; - // void SetInput(unsigned int idx, const ImageType *input); - // void SetInput(const ImageType *input) - // { - // m_this->SetInput(0, input); - // } - - // const ImageType * GetInput(unsigned int idx); - // const ImageType * GetInput() - // { - // return this->GetInput(0); - // } - - //virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx); - // virtual void GenerateData(); - // virtual void GenerateOutputInformation(); - - /** Input : initial image and object */ - // itkSetMacro(Mesh, vtkSmartPointer); - // itkGetConstMacro(Mesh, vtkSmartPointer); - - // itkSetMacro(LikeImage, ImagePointer); - // itkGetConstMacro(LikeImage, ImagePointer); - // itkSetMacro(Extrude, bool); - // itkGetMacro(Extrude, bool); - // itkBooleanMacro(Extrude); itkSetMacro(Input, ImagePointer); itkGetConstMacro(Input, ImagePointer); itkGetMacro(OutputMesh, vtkSmartPointer); + itkSetMacro(ThresholdValue, PixelType); - // virtual void GenerateOutputInformation(); virtual void Update(); protected: @@ -113,6 +78,7 @@ namespace clitk { ImagePointer m_Input; vtkSmartPointer m_OutputMesh; + PixelType m_ThresholdValue; private: BinaryImageToMeshFilter(const Self&); //purposely not implemented