ITK  4.9.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:
100 
105 
112 
115 
117  itkNewMacro(Self);
118 
121  void SetMean(const MeanVectorType & mean)
122  {
123  m_ThresholdFunction->SetMean(mean);
124  this->Modified();
125  }
127 
128  const MeanVectorType & GetMean() const
129  {
130  return m_ThresholdFunction->GetMean();
131  }
132 
134  {
135  m_ThresholdFunction->SetCovariance(cov);
136  this->Modified();
137  }
138 
140  {
141  return m_ThresholdFunction->GetCovariance();
142  }
143 
146  {
147  m_ThresholdFunction->SetThreshold(thr);
148  this->Modified();
149  }
151 
153  {
154  return m_ThresholdFunction->GetThreshold();
155  }
156 
157 protected:
160 
161  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
162 
163  VectorThresholdSegmentationLevelSetImageFilter(const Self &) ITK_DELETE_FUNCTION;
164  void operator=(const Self &) ITK_DELETE_FUNCTION;
165 
166 private:
168 };
169 } // end namespace itk
170 
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkVectorThresholdSegmentationLevelSetImageFilter.hxx"
173 #endif
174 
175 #endif
Light weight base class for most itk classes.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Image< TOutputPixelType, itkGetStaticConstMacro(InputImageDimension) > OutputImageType
virtual void Modified() const
This function is used in VectorThresholdSegmentationLevelSetImageFilter to segment structures in imag...
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
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...
VectorThresholdSegmentationLevelSetFunction< OutputImageType, FeatureImageType > ThresholdFunctionType