ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFastBilateralImageFilter.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 itkFastBilateralImageFilter_h
19#define itkFastBilateralImageFilter_h
20
22#include "itkImage.h"
27
28namespace itk
29{
71
72template <typename TInputImage, typename TOutputImage>
73class ITK_EXPORT FastBilateralImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
74{
75public:
76 ITK_DISALLOW_COPY_AND_MOVE(FastBilateralImageFilter);
77
83
85 itkNewMacro(Self);
86
88 itkOverrideGetNameOfClassMacro(FastBilateralImageFilter);
89
92 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
93
95 using InputImageType = TInputImage;
96 using InputImagePointer = typename TInputImage::Pointer;
97 using InputImageConstPointer = typename TInputImage::ConstPointer;
98 using InputImageSpacingType = typename TInputImage::SpacingType;
99 using InputImageSizeType = typename TInputImage::SizeType;
100 using InputImageIndexType = typename TInputImage::IndexType;
101
104
106 using OutputImageType = TOutputImage;
107 using OutputImagePointer = typename TOutputImage::Pointer;
108
111
113 using OutputPixelType = typename TOutputImage::PixelType;
114 using InputPixelType = typename TInputImage::PixelType;
115
119
123 itkGetConstMacro(DomainSigma, DomainSigmaArrayType);
125 itkGetConstMacro(RangeSigma, double);
126 itkSetMacro(RangeSigma, double);
127
130 void
131 SetDomainSigma(const double v)
132 {
133 m_DomainSigma.Fill(v);
134 }
135
136protected:
141 {
142 m_DomainSigma.Fill(4.0);
143 m_RangeSigma = 50.0;
144 }
145
146 ~FastBilateralImageFilter() override = default;
147
148 /*
149 * The FastBilateralImageFilter needs a larger input requested
150 * region than the size of the output requested region. Like
151 * the BilateralImageFilter, the FastBilateralImageFilter needs
152 * an amount of padding in each dimension based on the domain sigma.
153 */
154 void
156
158 void
159 GenerateData() override;
160
162 void
163 PrintSelf(std::ostream & os, Indent indent) const override;
164
168
170 using GridPixelType = typename GridType::PixelType;
171 using GridIndexType = typename GridType::IndexType;
172 using GridSizeType = typename GridType::SizeType;
174 using GridRegionType = typename GridType::RegionType;
175
179
182
186
189};
190
191} // namespace itk
192
193#ifndef ITK_MANUAL_INSTANTIATION
194# include "itkFastBilateralImageFilter.hxx"
195#endif
196
197#endif // itkFastBilateralImageFilter
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
typename GridType::IndexType GridIndexType
typename TOutputImage::Pointer OutputImagePointer
FixedArray< double, Self::ImageDimension > DomainSigmaArrayType
typename TInputImage::Pointer InputImagePointer
typename GridType::SizeType GridSizeType
typename itk::Image< float, Self::ImageDimension+1 > GridType
ImageRegionConstIteratorWithIndex< TInputImage > InputImageConstIteratorType
~FastBilateralImageFilter() override=default
ImageRegionIterator< GridType > GridImageIteratorType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
SmartPointer< const Self > ConstPointer
typename TInputImage::PixelType InputPixelType
typename TOutputImage::PixelType OutputPixelType
LinearInterpolateImageFunction< GridType, float > InterpolatorType
typename GridType::RegionType GridRegionType
DiscreteGaussianImageFilter< GridType, GridType > BlurType
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::IndexType InputImageIndexType
typename TInputImage::SpacingType InputImageSpacingType
typename GridType::PixelType GridPixelType
typename InterpolatorType::ContinuousIndexType InterpolatedIndexType
static constexpr unsigned int ImageDimension
ImageRegionIterator< TOutputImage > OutputImageIteratorType
ImageRegionConstIterator< GridType > GridImageConstIteratorType
typename Size< Self::ImageDimension+1 >::SizeValueType GridSizeValueType
typename TInputImage::ConstPointer InputImageConstPointer
typename TInputImage::SizeType InputImageSizeType
void GenerateInputRequestedRegion() override
Simulate a standard C array with copy semantics.
Read-only ImageRegionIteratorWithIndex: ImageRegionConstIteratorWithIndex<TImage> behaves as ImageReg...
Read-only ImageRegionIterator: ImageRegionConstIterator<TImage> behaves as ImageRegionIterator<const ...
A multi-dimensional iterator templated over image type that walks a region of pixels.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
Linearly interpolate an image at specified positions.
ContinuousIndex< float, Self::ImageDimension > ContinuousIndexType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)
itk::SizeValueType SizeValueType
Definition itkSize.h:80