ITK  5.2.0
Insight Toolkit
itkVectorThresholdSegmentationLevelSetImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkVectorThresholdSegmentationLevelSetImageFilter_h
19 #define itkVectorThresholdSegmentationLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
88 template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
90  : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
91 {
92 public:
93  ITK_DISALLOW_COPY_AND_MOVE(VectorThresholdSegmentationLevelSetImageFilter);
94 
100 
102  using ValueType = typename Superclass::ValueType;
103  using OutputImageType = typename Superclass::OutputImageType;
104  using FeatureImageType = typename Superclass::FeatureImageType;
105 
112 
115 
117  itkNewMacro(Self);
118 
121  void
122  SetMean(const MeanVectorType & mean)
123  {
124  m_ThresholdFunction->SetMean(mean);
125  this->Modified();
126  }
128 
129  const MeanVectorType &
130  GetMean() const
131  {
132  return m_ThresholdFunction->GetMean();
133  }
134 
135  void
137  {
138  m_ThresholdFunction->SetCovariance(cov);
139  this->Modified();
140  }
141 
142  const CovarianceMatrixType &
144  {
145  return m_ThresholdFunction->GetCovariance();
146  }
147 
149  void
151  {
152  m_ThresholdFunction->SetThreshold(thr);
153  this->Modified();
154  }
156 
157  ScalarValueType
159  {
160  return m_ThresholdFunction->GetThreshold();
161  }
162 
163 protected:
166 
167  void
168  PrintSelf(std::ostream & os, Indent indent) const override;
169 
170 private:
172 };
173 } // end namespace itk
174 
175 #ifndef ITK_MANUAL_INSTANTIATION
176 # include "itkVectorThresholdSegmentationLevelSetImageFilter.hxx"
177 #endif
178 
179 #endif
itk::VectorThresholdSegmentationLevelSetFunction::ScalarValueType
typename Superclass::ScalarValueType ScalarValueType
Definition: itkVectorThresholdSegmentationLevelSetFunction.h:79
itk::SegmentationLevelSetImageFilter
A base class which defines the API for implementing a special class of image segmentation filters usi...
Definition: itkSegmentationLevelSetImageFilter.h:144
itk::SegmentationLevelSetImageFilter::ValueType
typename Superclass::ValueType ValueType
Definition: itkSegmentationLevelSetImageFilter.h:164
itk::VectorThresholdSegmentationLevelSetImageFilter::SetMean
void SetMean(const MeanVectorType &mean)
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:122
itkVectorThresholdSegmentationLevelSetFunction.h
itk::VectorThresholdSegmentationLevelSetImageFilter::ScalarValueType
typename ThresholdFunctionType::ScalarValueType ScalarValueType
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:111
itk::VectorThresholdSegmentationLevelSetImageFilter::m_ThresholdFunction
ThresholdFunctionPointer m_ThresholdFunction
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:171
itk::VectorThresholdSegmentationLevelSetImageFilter::SetThreshold
void SetThreshold(ScalarValueType thr)
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:150
itk::VectorThresholdSegmentationLevelSetImageFilter::GetMean
const MeanVectorType & GetMean() const
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:130
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::VectorThresholdSegmentationLevelSetImageFilter
Segments structures in images based on intensity values.
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:89
itkSegmentationLevelSetImageFilter.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::VectorThresholdSegmentationLevelSetImageFilter::GetThreshold
ScalarValueType GetThreshold()
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:158
itk::VectorThresholdSegmentationLevelSetImageFilter::MeanVectorType
typename ThresholdFunctionType::MeanVectorType MeanVectorType
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:109
itk::VectorThresholdSegmentationLevelSetImageFilter::GetCovariance
const CovarianceMatrixType & GetCovariance() const
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:143
itk::VectorThresholdSegmentationLevelSetImageFilter::SetCovariance
void SetCovariance(const CovarianceMatrixType &cov)
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:136
itk::VectorThresholdSegmentationLevelSetFunction::CovarianceMatrixType
typename MahalanobisFunctionType::CovarianceMatrixType CovarianceMatrixType
Definition: itkVectorThresholdSegmentationLevelSetFunction.h:93
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::VectorThresholdSegmentationLevelSetImageFilter::ThresholdFunctionPointer
typename ThresholdFunctionType::Pointer ThresholdFunctionPointer
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:108
itk::VectorThresholdSegmentationLevelSetFunction
This function is used in VectorThresholdSegmentationLevelSetImageFilter to segment structures in imag...
Definition: itkVectorThresholdSegmentationLevelSetFunction.h:58
itk::VectorThresholdSegmentationLevelSetFunction::MeanVectorType
typename MahalanobisFunctionType::MeanVectorType MeanVectorType
Definition: itkVectorThresholdSegmentationLevelSetFunction.h:92
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::VectorThresholdSegmentationLevelSetImageFilter::CovarianceMatrixType
typename ThresholdFunctionType::CovarianceMatrixType CovarianceMatrixType
Definition: itkVectorThresholdSegmentationLevelSetImageFilter.h:110
itk::SegmentationLevelSetImageFilter::FeatureImageType
TFeatureImage FeatureImageType
Definition: itkSegmentationLevelSetImageFilter.h:170