ITK  4.3.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< class 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  itkGetObjectMacro( Image, ImageType );
74 
76  virtual OutputType Evaluate( const InputType& iP ) const;
77  virtual void Evaluate( const InputType& iP, LevelSetDataType& ioData ) const;
79 
80 protected:
82 
83  virtual ~LevelSetDenseImage();
84 
86 
87  virtual bool IsInsideDomain( const InputType& iP ) const;
88 
90  virtual void Initialize();
91 
93  virtual void CopyInformation(const DataObject *data);
94 
96  virtual void Graft( const DataObject* data );
97 
98 private:
99 
100  LevelSetDenseImage( const Self& ); // purposely not implemented
101  void operator = ( const Self& ); // purposely not implemented
102  };
103 }
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkLevelSetDenseImage.hxx"
107 #endif
108 
109 #endif // __itkLevelSetDenseImage_h
110