ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkLevelSetDenseImage.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 itkLevelSetDenseImage_h
20 #define itkLevelSetDenseImage_h
21 
23 
24 namespace itk
25 {
40 template< typename TImage >
42  public DiscreteLevelSetImage< typename TImage::PixelType, TImage::ImageDimension >
43  {
44 public:
45  typedef TImage ImageType;
46  typedef typename ImageType::Pointer ImagePointer;
47  typedef typename ImageType::IndexType IndexType;
48  typedef typename ImageType::PixelType PixelType;
49  typedef typename ImageType::RegionType RegionType;
51 
56 
58  itkNewMacro ( Self );
59 
61  itkTypeMacro ( LevelSetDenseImage, DiscreteLevelSetImage );
62 
63  itkStaticConstMacro ( Dimension, unsigned int, Superclass::Dimension );
64 
65  typedef typename Superclass::InputType InputType;
71 
72  virtual void SetImage( ImageType* iImage );
73  itkGetModifiableObjectMacro(Image, ImageType );
74 
76  virtual OutputType Evaluate( const InputType& inputIndex ) const ITK_OVERRIDE;
77  virtual void Evaluate( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
79 
80 protected:
82 
83  virtual ~LevelSetDenseImage();
84 
86 
87  virtual bool IsInsideDomain( const InputType& inputIndex ) const ITK_OVERRIDE;
88 
90  virtual void Initialize() ITK_OVERRIDE;
91 
93  virtual void CopyInformation(const DataObject *data) ITK_OVERRIDE;
94 
96  virtual void Graft( const DataObject* data ) ITK_OVERRIDE;
97 
98 private:
99 
100  LevelSetDenseImage( const Self& ) ITK_DELETE_FUNCTION;
101  void operator = ( const Self& ) ITK_DELETE_FUNCTION;
102  };
103 }
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkLevelSetDenseImage.hxx"
107 #endif
108 
109 #endif // itkLevelSetDenseImage_h
virtual void CopyInformation(const DataObject *data) override
static const unsigned int Dimension
ImageType::PixelType PixelType
virtual void Initialize() override
Superclass::OutputRealType OutputRealType
ImageType::IndexType IndexType
ImageType::RegionType RegionType
virtual bool IsInsideDomain(const InputType &inputIndex) const override
ImageType::Pointer ImagePointer
static const unsigned int Dimension
SmartPointer< const Self > ConstPointer
Superclass::LevelSetDataType LevelSetDataType
SmartPointer< Self > Pointer
Superclass::OutputType OutputType
Superclass::HessianType HessianType
Superclass::InputType InputType
virtual void SetImage(ImageType *iImage)
Superclass::LevelSetDataType LevelSetDataType
virtual OutputType Evaluate(const InputType &inputIndex) const override
Base class for the &quot;dense&quot; representation of a level-set function on one image.
virtual void Graft(const DataObject *data) override
Superclass::OutputRealType OutputRealType
Abstract class for a level-set function on one Image.
Superclass::OutputType OutputType
Superclass::GradientType GradientType
Superclass::GradientType GradientType
DiscreteLevelSetImage< PixelType, ImageType::ImageDimension > Superclass
Superclass::HessianType HessianType
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75