FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
AirwaySegmentation.hpp
Go to the documentation of this file.
1 #ifndef AIRWAY_SEGMENTATION_HPP_
2 #define AIRWAY_SEGMENTATION_HPP_
3 
5 
6 namespace fast {
7 
8 class Image;
9 class Segmentation;
10 
11 class FAST_EXPORT AirwaySegmentation : public SegmentationAlgorithm {
13  public:
14  void setSeedPoint(int x, int y, int z);
15  void setSeedPoint(Vector3i seed);
21  void setSmoothing(float sigma);
22  void loadAttributes() override;
23  private:
25  void execute();
26  static Vector3i findSeedVoxel(std::shared_ptr<Image> volume);
27  std::shared_ptr<Image> convertToHU(std::shared_ptr<Image> image);
28  void morphologicalClosing(std::shared_ptr<Segmentation> segmentation);
29 
30  Vector3i mSeedPoint;
31  float mSmoothingSigma = 0.5;
32  bool mUseManualSeedPoint = false;
33 };
34 
35 }
36 
37 
38 #endif
fast
Definition: AffineTransformation.hpp:7
fast::AirwaySegmentation
Definition: AirwaySegmentation.hpp:11
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
SegmentationAlgorithm.hpp
fast::SegmentationAlgorithm
Definition: SegmentationAlgorithm.hpp:9