X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractMediastinalVesselsFilter.h;h=0f3df6cbf09c41bb942b5d87c622fd2ea90d507a;hb=54de2903ffa1d7f444d2a38609de58f8f2ab0d2d;hp=59ff6f7a3f8f182200fbddbdf4fc5acb6de27724;hpb=096c4372c96618036c4c950c39da7a750cfe4bfb;p=clitk.git diff --git a/segmentation/clitkExtractMediastinalVesselsFilter.h b/segmentation/clitkExtractMediastinalVesselsFilter.h index 59ff6f7..0f3df6c 100644 --- a/segmentation/clitkExtractMediastinalVesselsFilter.h +++ b/segmentation/clitkExtractMediastinalVesselsFilter.h @@ -113,6 +113,10 @@ namespace clitk { itkGetConstMacro(DebugFlag, bool); itkBooleanMacro(DebugFlag); + itkSetMacro(VerboseTrackingFlag, bool); + itkGetConstMacro(VerboseTrackingFlag, bool); + itkBooleanMacro(VerboseTrackingFlag); + itkSetMacro(SoughtVesselSeedName, std::string); itkGetConstMacro(SoughtVesselSeedName, std::string); @@ -125,6 +129,9 @@ namespace clitk { itkSetMacro(MaxNumberOfFoundBifurcation, int); itkGetConstMacro(MaxNumberOfFoundBifurcation, int); + itkSetMacro(FinalOpeningRadius, int); + itkGetConstMacro(FinalOpeningRadius, int); + protected: ExtractMediastinalVesselsFilter(); virtual ~ExtractMediastinalVesselsFilter() {} @@ -134,6 +141,7 @@ namespace clitk { virtual void GenerateData(); bool m_DebugFlag; + bool m_VerboseTrackingFlag; ImagePointer m_Input; MaskImagePointer m_Working_Support; MaskImagePointer m_Mediastinum; @@ -150,6 +158,7 @@ namespace clitk { double m_MaxDistanceLeftToCarina; double m_MaxDistanceRightToCarina; int m_MaxNumberOfFoundBifurcation; + int m_FinalOpeningRadius; std::vector m_slice_recon; std::vector m_slice_recon2; @@ -163,10 +172,17 @@ namespace clitk { void CropInputImage(); void TrackBifurcationFromPoint(MaskImagePointer & recon, std::vector & slices_recon, - MaskImagePointType BCA_p, + MaskImagePointType point3D, + MaskImagePointType pointMaxSlice, LabelType newLabel, std::vector & bif); + void TrackVesselsFromPoint(MaskImagePointer & recon, + std::vector & slices_recon, + MaskImagePointType point3D, + MaskImagePointType pointMaxSlice, + LabelType newLabel); + private: ExtractMediastinalVesselsFilter(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented