ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkTobogganImageFilter.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 itkTobogganImageFilter_h
19 #define itkTobogganImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
38 template< typename TInputImage >
39 class ITK_TEMPLATE_EXPORT TobogganImageFilter:
40  public ImageToImageFilter<
41  TInputImage,
42  Image< IdentifierType, TInputImage::ImageDimension > >
43 {
44 public:
47 
49  typedef TInputImage InputImageType;
50 
52  itkStaticConstMacro(NDimensions, unsigned int, TInputImage::ImageDimension);
53 
56 
59 
61  typedef typename InputImageType::PixelType InputImagePixelType;
62 
64  enum { ImageDimension = InputImageType::ImageDimension };
65 
67  typedef typename InputImageType::RegionType RegionType;
70  typedef typename InputImageType::Pointer InputImagePointer;
71  typedef typename InputImageType::ConstPointer InputImageConstPointer;
73 
76 
78  typedef typename InputImageType::PixelType ScalarType;
79 
82 
85 
87  itkNewMacro(Self);
88 
90  void GenerateData() ITK_OVERRIDE;
91 
92  void GenerateInputRequestedRegion() ITK_OVERRIDE;
93 
94  void EnlargeOutputRequestedRegion(DataObject *) ITK_OVERRIDE;
95 
97  typedef ConstNeighborhoodIterator< TInputImage >
99 
100 #ifdef ITK_USE_CONCEPT_CHECKING
101  // Begin concept checking
102  itkConceptMacro( LessThanComparableCheck,
104  itkConceptMacro( OStreamWritableCheck,
106  // End concept checking
107 #endif
108 
109 protected:
111  ~TobogganImageFilter() ITK_OVERRIDE {}
112  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
113 
114 private:
115  ITK_DISALLOW_COPY_AND_ASSIGN(TobogganImageFilter);
116 }; // end of class
117 } // end namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 #include "itkTobogganImageFilter.hxx"
121 #endif
122 
123 #endif
Light weight base class for most itk classes.
toboggan image segmentation The Toboggan segmentation takes a gradient magnitude image as input and p...
InputImageType::IndexType IndexType
OutputImageType::Pointer OutputImagePointer
InputImageType::RegionType RegionType
OutputImageType::PixelType OutputImagePixelType
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
InputImageType::ConstPointer InputImageConstPointer
TPixel PixelType
Definition: itkImage.h:89
ImageToImageFilter< InputImageType, OutputImageType > Superclass
InputImageType::PixelType ScalarType
InputImageType::Pointer InputImagePointer
Base class for filters that take an image as input and produce an image as output.
InputImageType::PixelType InputImagePixelType
Image< IdentifierType, itkGetStaticConstMacro(NDimensions) > OutputImageType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75
SmartPointer< Self > Pointer
InputImageType::SizeType SizeType