ITK  6.0.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
22
24
25namespace itk
26{
51template <typename TInputImage,
52 typename TMaskImage = Image<unsigned char, TInputImage::ImageDimension>,
53 class TOutputImage = TInputImage>
54class ITK_TEMPLATE_EXPORT StochasticFractalDimensionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
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
85
86 const MaskImageType *
87 GetMaskImage() const;
88
93
95 itkSetMacro(NeighborhoodRadius, RadiusType);
96 itkGetConstMacro(NeighborhoodRadius, RadiusType);
99protected:
102
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
106 void
107 GenerateData() override;
108
109private:
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
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
This filter computes the stochastic fractal dimension of the input image.
void PrintSelf(std::ostream &os, Indent indent) const override
typename ConstNeighborhoodIteratorType::RadiusType RadiusType
const MaskImageType * GetMaskImage() const
void SetMaskImage(const MaskImageType *mask)
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....