ITK  5.4.0
Insight Toolkit
itkStochasticFractalDimensionImageFilter.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 itkStochasticFractalDimensionImageFilter_h
19 #define itkStochasticFractalDimensionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
24 
25 namespace itk
26 {
51 template <typename TInputImage,
52  typename TMaskImage = Image<unsigned char, TInputImage::ImageDimension>,
53  class TOutputImage = TInputImage>
54 class ITK_TEMPLATE_EXPORT StochasticFractalDimensionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55 {
56 public:
57  ITK_DISALLOW_COPY_AND_MOVE(StochasticFractalDimensionImageFilter);
58 
64 
66  itkNewMacro(Self);
67 
69  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
70 
72  using RealType = float;
73  using InputImageType = TInputImage;
74  using MaskImageType = TMaskImage;
75  using OutputImageType = TOutputImage;
76 
78  itkOverrideGetNameOfClassMacro(StochasticFractalDimensionImageFilter);
79 
83  void
84  SetMaskImage(const MaskImageType * mask);
85 
86  const MaskImageType *
87  GetMaskImage() const;
88 
92  using RadiusType = typename ConstNeighborhoodIteratorType::RadiusType;
93 
95  itkSetMacro(NeighborhoodRadius, RadiusType);
96  itkGetConstMacro(NeighborhoodRadius, RadiusType);
99 protected:
102 
103  void
104  PrintSelf(std::ostream & os, Indent indent) const override;
105 
106  void
107  GenerateData() override;
108 
109 private:
110  RadiusType m_NeighborhoodRadius{};
111 
112  typename MaskImageType::Pointer m_MaskImage{};
113 }; // end of class
114 } // end namespace itk
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 # include "itkStochasticFractalDimensionImageFilter.hxx"
118 #endif
119 
120 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itkConstNeighborhoodIterator.h
itk::StochasticFractalDimensionImageFilter
This filter computes the stochastic fractal dimension of the input image.
Definition: itkStochasticFractalDimensionImageFilter.h:54
itk::StochasticFractalDimensionImageFilter::RealType
float RealType
Definition: itkStochasticFractalDimensionImageFilter.h:72
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::StochasticFractalDimensionImageFilter::MaskImageType
TMaskImage MaskImageType
Definition: itkStochasticFractalDimensionImageFilter.h:74
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::StochasticFractalDimensionImageFilter::RadiusType
typename ConstNeighborhoodIteratorType::RadiusType RadiusType
Definition: itkStochasticFractalDimensionImageFilter.h:92
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
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::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90