ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVectorThresholdSegmentationLevelSetImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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,
89  typename TFeatureImage,
90  typename TOutputPixelType = float >
92  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
93 {
94 public:
95  ITK_DISALLOW_COPY_AND_ASSIGN(VectorThresholdSegmentationLevelSetImageFilter);
96 
102 
104  using ValueType = typename Superclass::ValueType;
105  using OutputImageType = typename Superclass::OutputImageType;
106  using FeatureImageType = typename Superclass::FeatureImageType;
107 
114 
117 
119  itkNewMacro(Self);
120 
123  void SetMean(const MeanVectorType & mean)
124  {
125  m_ThresholdFunction->SetMean(mean);
126  this->Modified();
127  }
129 
130  const MeanVectorType & GetMean() const
131  {
132  return m_ThresholdFunction->GetMean();
133  }
134 
136  {
137  m_ThresholdFunction->SetCovariance(cov);
138  this->Modified();
139  }
140 
142  {
143  return m_ThresholdFunction->GetCovariance();
144  }
145 
148  {
149  m_ThresholdFunction->SetThreshold(thr);
150  this->Modified();
151  }
153 
155  {
156  return m_ThresholdFunction->GetThreshold();
157  }
158 
159 protected:
162 
163  void PrintSelf(std::ostream & os, Indent indent) const override;
164 
165 private:
167 };
168 } // end namespace itk
169 
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkVectorThresholdSegmentationLevelSetImageFilter.hxx"
172 #endif
173 
174 #endif
Light weight base class for most itk classes.
typename MahalanobisFunctionType::CovarianceMatrixType CovarianceMatrixType
This function is used in VectorThresholdSegmentationLevelSetImageFilter to segment structures in imag...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
A base class which defines the API for implementing a special class of image segmentation filters usi...
Templated n-dimensional image class.
Definition: itkImage.h:75