ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSatoVesselnessFeatureGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkSatoVesselnessFeatureGenerator.h
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef itkSatoVesselnessFeatureGenerator_h
18 #define itkSatoVesselnessFeatureGenerator_h
19 
20 #include "itkFeatureGenerator.h"
21 #include "itkImage.h"
22 #include "itkImageSpatialObject.h"
27 
28 namespace itk
29 {
30 
43 template <unsigned int NDimension>
44 class ITK_TEMPLATE_EXPORT SatoVesselnessFeatureGenerator : public FeatureGenerator<NDimension>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_ASSIGN(SatoVesselnessFeatureGenerator);
48 
54 
56  itkNewMacro(Self);
57 
60 
62  static constexpr unsigned int Dimension = NDimension;
63 
66  using InputPixelType = signed short;
70  using SpatialObjectType = typename Superclass::SpatialObjectType;
71 
74  void SetInput( const SpatialObjectType * input );
75  const SpatialObjectType * GetInput() const;
77 
80  const SpatialObjectType * GetFeature() const;
81 
84  itkSetMacro( Sigma, double );
85  itkGetMacro( Sigma, double );
87 
89  itkSetMacro( Alpha1, double );
90  itkGetMacro( Alpha1, double );
92 
94  itkSetMacro( Alpha2, double );
95  itkGetMacro( Alpha2, double );
97 
99  itkSetMacro( UseVesselEnhancingDiffusion, bool );
100  itkGetMacro( UseVesselEnhancingDiffusion, bool );
101  itkBooleanMacro( UseVesselEnhancingDiffusion );
103 
104 protected:
106  ~SatoVesselnessFeatureGenerator() override;
107  void PrintSelf(std::ostream& os, Indent indent) const override;
108 
111  void GenerateData () override;
112 
113 private:
114  using InternalPixelType = float;
116 
119 
121 
125 
129 
130  double m_Sigma;
131  double m_Alpha1;
132  double m_Alpha2;
134 };
135 
136 } // end namespace itk
137 
138 #ifndef ITK_MANUAL_INSTANTIATION
139 # include "itkSatoVesselnessFeatureGenerator.hxx"
140 #endif
141 
142 #endif
Light weight base class for most itk classes.
typename InputImageSpatialObjectType::Pointer InputImageSpatialObjectPointer
Class that generates features (typically images) used as input for a segmentation method...
Implementation of the composite pattern.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Computes the Hessian matrix of an image by convolution with the Second and Cross derivatives of a Gau...
Line filter to provide a vesselness measure for tubular objects from the hessian matrix.
Generates a feature image by computing the Sato Vesselness measure of the input image.
Implementation of an image as spatial object.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
VesselnessMeasureFilterType::Pointer m_VesselnessFilter
VesselEnhancingDiffusionFilterType::Pointer m_VesselEnhancingDiffusionFilter
Templated n-dimensional image class.
Definition: itkImage.h:75