ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkGetNewtonUpdateImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK Consortium
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 rtkGetNewtonUpdateImageFilter_h
19#define rtkGetNewtonUpdateImageFilter_h
20
22#include "rtkMacro.h"
23
24namespace rtk
25{
41template <class TGradient,
42 class THessian = itk::Image<itk::Vector<typename TGradient::PixelType::ValueType,
43 TGradient::PixelType::Dimension * TGradient::PixelType::Dimension>,
44 TGradient::ImageDimension>>
45class ITK_TEMPLATE_EXPORT GetNewtonUpdateImageFilter : public itk::ImageToImageFilter<TGradient, TGradient>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(GetNewtonUpdateImageFilter);
49
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(GetNewtonUpdateImageFilter);
60
62 static constexpr unsigned int nChannels = TGradient::PixelType::Dimension;
63
65 using dataType = typename TGradient::PixelType::ValueType;
66
68 void
69 SetInputGradient(const TGradient * gradient);
70 void
71 SetInputHessian(const THessian * hessian);
72
73protected:
75 ~GetNewtonUpdateImageFilter() override = default;
76
77 void
79
81 void
82 DynamicThreadedGenerateData(const typename TGradient::RegionType & outputRegionForThread) override;
83
85 typename TGradient::ConstPointer
87 typename THessian::ConstPointer
89};
90} // namespace rtk
91
92
93#ifndef ITK_MANUAL_INSTANTIATION
94# include "rtkGetNewtonUpdateImageFilter.hxx"
95#endif
96
97#endif
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
THessian::ConstPointer GetInputHessian()
void SetInputGradient(const TGradient *gradient)
TGradient::ConstPointer GetInputGradient()
void SetInputHessian(const THessian *hessian)
void GenerateInputRequestedRegion() override
~GetNewtonUpdateImageFilter() override=default
itk::ImageToImageFilter< TGradient, TGradient > Superclass
typename TGradient::PixelType::ValueType dataType
void DynamicThreadedGenerateData(const typename TGradient::RegionType &outputRegionForThread) override