ITK  6.0.0
Insight Toolkit
itkTobogganImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 : public ImageToImageFilter<TInputImage, TOutputImage>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(TobogganImageFilter);
43 
46 
48  using InputImageType = TInputImage;
49 
51  static constexpr unsigned int NDimensions = TInputImage::ImageDimension;
52 
54  using OutputImageType = TOutputImage;
55 
57  using OutputImagePixelType = typename OutputImageType::PixelType;
58 
60  using InputImagePixelType = typename InputImageType::PixelType;
61 
63  enum
64  {
65  ImageDimension = InputImageType::ImageDimension
66  };
67 
75 
78 
80  using ScalarType = typename InputImageType::PixelType;
81 
84 
86  itkOverrideGetNameOfClassMacro(TobogganImageFilter);
87 
89  itkNewMacro(Self);
90 
92  void
93  GenerateData() override;
94 
95  void
96  GenerateInputRequestedRegion() override;
97 
98  void
99  EnlargeOutputRequestedRegion(DataObject *) override;
100 
103 
104 #ifdef ITK_USE_CONCEPT_CHECKING
105  // Begin concept checking
108  // End concept checking
109 #endif
110 
111 protected:
112  TobogganImageFilter() = default;
113  ~TobogganImageFilter() override = default;
114  void
115  PrintSelf(std::ostream & os, Indent indent) const override;
116 }; // end of class
117 } // end namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkTobogganImageFilter.hxx"
121 #endif
122 
123 #endif
itk::TobogganImageFilter::IndexType
typename InputImageType::IndexType IndexType
Definition: itkTobogganImageFilter.h:71
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAddImageFilter.h:94
itk::Concept::OStreamWritable
Definition: itkConceptChecking.h:638
itkConstNeighborhoodIterator.h
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::TobogganImageFilter::RegionType
typename InputImageType::RegionType RegionType
Definition: itkTobogganImageFilter.h:69
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::TobogganImageFilter::SizeType
typename InputImageType::SizeType SizeType
Definition: itkTobogganImageFilter.h:70
itk::TobogganImageFilter::ScalarType
typename InputImageType::PixelType ScalarType
Definition: itkTobogganImageFilter.h:80
itk::TobogganImageFilter
toboggan image segmentation The Toboggan segmentation takes a gradient magnitude image as input and p...
Definition: itkTobogganImageFilter.h:39
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::ConstNeighborhoodIterator
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Definition: itkConstNeighborhoodIterator.h:51
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:139
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131
itk::Concept::LessThanComparable
Definition: itkConceptChecking.h:262
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293