ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBSplineGradientImageFilter.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 itkBSplineGradientImageFilter_h
19#define itkBSplineGradientImageFilter_h
20
23#include "itkImage.h"
24#include "itkCovariantVector.h"
25
26namespace itk
27{
37template <typename TInputImage,
38 typename TOutputValueType = float,
39 typename TCoordRep = double,
40 typename TCoefficientType = double>
41class ITK_TEMPLATE_EXPORT BSplineGradientImageFilter
42 : public ImageToImageFilter<
43 TInputImage,
44 Image<CovariantVector<TOutputValueType, TInputImage::ImageDimension>, TInputImage::ImageDimension>>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(BSplineGradientImageFilter);
48
50 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
51
54
56 using InputImageType = TInputImage;
57 using InputImagePointer = typename InputImageType::Pointer;
59
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(BSplineGradientImageFilter);
70
72 using InputPixelType = typename InputImageType::PixelType;
73 using OutputValueType = TOutputValueType;
76
78 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputValueType>));
79
81 using CoordinateType = TCoordRep;
82 using CoefficientType = TCoefficientType;
85
86protected:
88 ~BSplineGradientImageFilter() override = default;
89
92 void
94
96 void
98
101 void
103
104 void
105 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
106
107private:
109};
110
111} // end namespace itk
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "itkBSplineGradientImageFilter.hxx"
115#endif
116
117#endif
static constexpr unsigned int ImageDimension
typename InterpolatorType::Pointer InterpolatorPointerType
Image< CovariantVector< TOutputValueType, ImageDimension >, ImageDimension > OutputImageType
void EnlargeOutputRequestedRegion(DataObject *output) override
BSplineInterpolateImageFunction< InputImageType, CoordinateType, CoefficientType > InterpolatorType
typename InputImageType::Pointer InputImagePointer
CovariantVector< OutputValueType, Self::OutputImageDimension > OutputPixelType
typename OutputImageType::RegionType OutputImageRegionType
void GenerateInputRequestedRegion() override
ImageToImageFilter< InputImageType, OutputImageType > Superclass
typename InputImageType::PixelType InputPixelType
void BeforeThreadedGenerateData() override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
~BSplineGradientImageFilter() override=default
Evaluates the B-Spline interpolation of an image. Spline order may be from 0 to 5.
A templated class holding a n-Dimensional covariant vector.
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....