ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkLevelSetImage.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 
19 #ifndef __itkLevelSetImage_h
20 #define __itkLevelSetImage_h
21 
22 #include "itkLevelSetBase.h"
23 #include "itkObjectFactory.h"
24 #include "itkIndex.h"
25 #include "itkImageBase.h"
26 
27 namespace itk
28 {
38 template< typename TInput, unsigned int VDimension, typename TOutput >
40  public LevelSetBase< TInput, VDimension, TOutput, ImageBase< VDimension > >
41 {
42 public:
44 
49 
51  itkTypeMacro ( LevelSetImage, LevelSetBase );
52 
53  itkStaticConstMacro ( Dimension, unsigned int, Superclass::Dimension );
54 
55  typedef typename Superclass::InputType InputType;
60  typedef typename Superclass::LevelSetDataType LevelSetDataType;
63 
64  /* Set/Get the domain offset from input domain */
65  itkSetMacro( DomainOffset, OffsetType );
66  itkGetConstMacro( DomainOffset, OffsetType );
67 
68 protected:
69  LevelSetImage();
70 
71  virtual ~LevelSetImage();
72 
76 
77  virtual bool IsInsideDomain( const InputType& iP ) const = 0;
78 
79 private:
80 
81  LevelSetImage( const Self& ); // purposely not implemented
82  void operator = ( const Self& ); // purposely not implemented
83 };
84 
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkLevelSetImage.hxx"
89 #endif
90 
91 #endif // __itkLevelSetImage_h
LevelSetImage Self
ImageBaseType::OffsetValueType OffsetValueType
LevelSetBase< TInput, VDimension, TOutput, ImageBaseType > Superclass
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Definition: itkOffset.h:55
Superclass::HessianType HessianType
Superclass::OutputRealType OutputRealType
Abstract base class for the representation of a level-set function.
static const unsigned int Dimension
Superclass::InputType InputType
GradientType ScalingType
SmartPointer< Self > Pointer
ImageBaseType::OffsetType OffsetType
Abstract class for a level-set function on one Image.
CovariantVector< OutputRealType, VDimension > GradientType
static const unsigned int Dimension
SmartPointer< const Self > ConstPointer
ImageBase< VDimension > ImageBaseType
NumericTraits< OutputType >::RealType OutputRealType
ScalingType m_NeighborhoodScales
virtual ~LevelSetImage()
OffsetType::OffsetValueType OffsetValueType
Definition: itkImageBase.h:140
Superclass::LevelSetDataType LevelSetDataType
Base class for templated image classes.
Definition: itkImageBase.h:112
OffsetType m_DomainOffset
void operator=(const Self &)
Matrix< OutputRealType, VDimension, VDimension > HessianType
Superclass::OutputType OutputType
Superclass::GradientType GradientType
A templated class holding a n-Dimensional covariant vector.
virtual bool IsInsideDomain(const InputType &iP) const =0
Base class for all data objects in ITK.