X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FCTBronchi%2FMoriLabelling.h;fp=appli%2FCTBronchi%2FMoriLabelling.h;h=d4eea090eec3e1a9ad02d6229d885ed439afaf77;hb=9ddfa27c59f7a0cdea8758b8aff1d9cd80c60d99;hp=caa96aab98be496910be43883512c1a35ff71ea0;hpb=b6c80dbd5be1caf6cbdbfc21d2075021c57d7af2;p=FrontAlgorithms.git diff --git a/appli/CTBronchi/MoriLabelling.h b/appli/CTBronchi/MoriLabelling.h index caa96aa..d4eea09 100644 --- a/appli/CTBronchi/MoriLabelling.h +++ b/appli/CTBronchi/MoriLabelling.h @@ -2,7 +2,6 @@ // @author Leonardo Florez Valencia // @email florez-l@javeriana.edu.co // ========================================================================= - #ifndef __CTBronchi__MoriLabelling__h__ #define __CTBronchi__MoriLabelling__h__ @@ -13,15 +12,6 @@ #include #include -/* TODO - #include - #include - #include - #include - #include - #include -*/ - namespace CTBronchi { /** @@ -53,7 +43,8 @@ namespace CTBronchi typedef CTBronchi::MoriLabellingTraits< TInputImage, TLabelImage > TTraits; fpaTraitsMacro( typename, TTraits ); - typedef fpa::Filters::Image::Algorithm< fpa::Filters::RegionGrow< TTraits > > TAlgorithm; + typedef fpa::Filters::RegionGrow< TTraits > TBase; + typedef fpa::Filters::Image::Algorithm< TBase > TAlgorithm; typedef fpa::Filters::Image::LabelsSeedFilter< TAlgorithm, _TLabelImage > Superclass; typedef MoriLabelling Self; typedef itk::SmartPointer< Self > Pointer; @@ -65,6 +56,9 @@ namespace CTBronchi itkNewMacro( Self ); itkTypeMacro( CTBronchi::MoriLabelling, fpa::Filters::Image::RegionGrow ); + itkGetConstMacro( InputInsideValue, TInputValue ); + itkSetMacro( InputInsideValue, TInputValue ); + public: TInputValue GetUpperThreshold( ) const; void SetUpperThreshold( TInputValue t ); @@ -82,6 +76,7 @@ namespace CTBronchi protected: typename TLabelFunctor::Pointer m_LabelFunctor; + TInputValue m_InputInsideValue; }; } // ecapseman