ITK  5.0.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, typename TOutputImage = Image< IdentifierType, TInputImage::ImageDimension > >
39 class ITK_TEMPLATE_EXPORT TobogganImageFilter:
40  public ImageToImageFilter<
41  TInputImage,
42  TOutputImage>
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_ASSIGN(TobogganImageFilter);
46 
49 
51  using InputImageType = TInputImage;
52 
54  static constexpr unsigned int NDimensions = TInputImage::ImageDimension;
55 
57  using OutputImageType = TOutputImage;
58 
60  using OutputImagePixelType = typename OutputImageType::PixelType;
61 
63  using InputImagePixelType = typename InputImageType::PixelType;
64 
66  enum { ImageDimension = InputImageType::ImageDimension };
67 
72  using InputImagePointer = typename InputImageType::Pointer;
73  using InputImageConstPointer = typename InputImageType::ConstPointer;
74  using OutputImagePointer = typename OutputImageType::Pointer;
75 
78 
80  using ScalarType = typename InputImageType::PixelType;
81 
84 
87 
89  itkNewMacro(Self);
90 
92  void GenerateData() override;
93 
94  void GenerateInputRequestedRegion() override;
95 
96  void EnlargeOutputRequestedRegion(DataObject *) override;
97 
100 
101 #ifdef ITK_USE_CONCEPT_CHECKING
102  // Begin concept checking
103  itkConceptMacro( LessThanComparableCheck,
105  itkConceptMacro( OStreamWritableCheck,
107  // End concept checking
108 #endif
109 
110 protected:
111  TobogganImageFilter() = default;
112  ~TobogganImageFilter() override = default;
113  void PrintSelf(std::ostream & os, Indent indent) const override;
114 }; // end of class
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkTobogganImageFilter.hxx"
119 #endif
120 
121 #endif
typename InputImageType::IndexType IndexType
typename OutputImageType::Pointer OutputImagePointer
toboggan image segmentation The Toboggan segmentation takes a gradient magnitude image as input and p...
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename InputImageType::SizeType SizeType
Base class for all process objects that output image data.
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename InputImageType::PixelType ScalarType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::RegionType RegionType
Base class for all data objects in ITK.