ITK  5.3.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  * 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 itkStochasticFractalDimensionImageFilter_h
19 #define itkStochasticFractalDimensionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
24 
25 namespace itk
26 {
52 template <typename TInputImage,
53  typename TMaskImage = Image<unsigned char, TInputImage::ImageDimension>,
54  class TOutputImage = TInputImage>
55 class ITK_TEMPLATE_EXPORT StochasticFractalDimensionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
56 {
57 public:
58  ITK_DISALLOW_COPY_AND_MOVE(StochasticFractalDimensionImageFilter);
59 
65 
67  itkNewMacro(Self);
68 
70  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
71 
73  using RealType = float;
74  using InputImageType = TInputImage;
75  using MaskImageType = TMaskImage;
76  using OutputImageType = TOutputImage;
77 
80 
84  void
85  SetMaskImage(const MaskImageType * mask);
86 
87  const MaskImageType *
88  GetMaskImage() const;
89 
94 
96  itkSetMacro(NeighborhoodRadius, RadiusType);
97  itkGetConstMacro(NeighborhoodRadius, RadiusType);
99 
100 protected:
103 
104  void
105  PrintSelf(std::ostream & os, Indent indent) const override;
106 
107  void
108  GenerateData() override;
109 
110 private:
112 
113  typename MaskImageType::Pointer m_MaskImage;
114 }; // end of class
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 # include "itkStochasticFractalDimensionImageFilter.hxx"
119 #endif
120 
121 #endif
itk::ConstNeighborhoodIterator::RadiusType
typename Superclass::RadiusType RadiusType
Definition: itkConstNeighborhoodIterator.h:71
itkConstNeighborhoodIterator.h
itk::StochasticFractalDimensionImageFilter::m_NeighborhoodRadius
RadiusType m_NeighborhoodRadius
Definition: itkStochasticFractalDimensionImageFilter.h:111
itk::StochasticFractalDimensionImageFilter
This filter computes the stochastic fractal dimension of the input image.
Definition: itkStochasticFractalDimensionImageFilter.h:55
itk::StochasticFractalDimensionImageFilter::RealType
float RealType
Definition: itkStochasticFractalDimensionImageFilter.h:73
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::StochasticFractalDimensionImageFilter::MaskImageType
TMaskImage MaskImageType
Definition: itkStochasticFractalDimensionImageFilter.h:75
itk::StochasticFractalDimensionImageFilter::m_MaskImage
MaskImageType::Pointer m_MaskImage
Definition: itkStochasticFractalDimensionImageFilter.h:113
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:93
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:138
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90