ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkShapePriorSegmentationLevelSetImageFilter.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 __itkShapePriorSegmentationLevelSetImageFilter_h
19 #define __itkShapePriorSegmentationLevelSetImageFilter_h
20 
25 
26 namespace itk
27 {
71 template< typename TInputImage,
72  typename TFeatureImage,
73  typename TOutputPixelType = float >
75  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
76  TOutputPixelType >
77 {
78 public:
79 
81  itkStaticConstMacro(ImageDimension, unsigned int,
82  TInputImage::ImageDimension);
83 
90 
93 
95  typedef typename Superclass::ValueType ValueType;
98 
100  typedef TOutputPixelType OutputPixelType;
101 
105 
109 
114 
119 
124 
126  virtual void SetShapeFunction(ShapeFunctionType *s);
127  itkGetModifiableObjectMacro(ShapeFunction, ShapeFunctionType);
129 
131  itkSetObjectMacro(CostFunction, CostFunctionType);
132  itkGetModifiableObjectMacro(CostFunction, CostFunctionType);
134 
136  itkSetObjectMacro(Optimizer, OptimizerType);
137  itkGetModifiableObjectMacro(Optimizer, OptimizerType);
139 
144  itkSetMacro(InitialParameters, ParametersType);
145  itkGetConstMacro(InitialParameters, ParametersType);
147 
150  {
152  {
154  this->Modified();
155  }
156  }
158 
160  {
162  }
163 
167 
170 
172  itkGetConstReferenceMacro(CurrentParameters, ParametersType);
173 
174 protected:
177 
178  virtual void PrintSelf(std::ostream & os, Indent indent) const;
179 
182  virtual void InitializeIteration();
183 
186  void GenerateData();
187 
190 
191 private:
192  ShapePriorSegmentationLevelSetImageFilter(const Self &); //purposely not
193  // implemented
194  void operator=(const Self &); //purposely not
195 
196  // implemented
197 
203 
205 };
206 } // end namespace itk
207 
208 #ifndef ITK_MANUAL_INSTANTIATION
209 #include "itkShapePriorSegmentationLevelSetImageFilter.hxx"
210 #endif
211 
212 #endif
virtual void SetShapePriorSegmentationFunction(ShapePriorSegmentationFunctionType *s)
This class is a base for the Optimization methods that optimize a single valued function.
ShapePriorSegmentationLevelSetFunction< OutputImageType, FeatureImageType > ShapePriorSegmentationFunctionType
This function is used in ShapePriorSegmentationLevelSetFilter to segment structures in an image based...
virtual void SetShapeFunction(ShapeFunctionType *s)
Base class for functions which evaluates the signed distance from a shape.
ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixelType > CostFunctionType
virtual void PrintSelf(std::ostream &os, Indent indent) const
Represent a node in a level set.
Generic representation for an optimization method.
Definition: itkOptimizer.h:37
Image< TOutputPixelType, itkGetStaticConstMacro(InputImageDimension) > OutputImageType
virtual void Modified() const
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
virtual ShapePriorSegmentationFunctionType * GetShapePriorSegmentationFunction()
Control indentation during Print() invocation.
Definition: itkIndent.h:49
ShapePriorSegmentationFunctionType::ShapeFunctionType ShapeFunctionType
void ExtractActiveRegion(NodeContainerType *ptr)
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
A base class which defines the API for implementing a special class of image segmentation filters usi...
A base class which defines the API for implementing a level set segmentation filter with statistical ...