ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkNesterovUpdateImageFilter.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
19#ifndef rtkNesterovUpdateImageFilter_h
20#define rtkNesterovUpdateImageFilter_h
21
23#include "itkPixelTraits.h"
24
25namespace rtk
26{
27
46
47template <typename TImage>
48class ITK_TEMPLATE_EXPORT NesterovUpdateImageFilter : public itk::InPlaceImageFilter<TImage, TImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(NesterovUpdateImageFilter);
52
57
59 using OutputImageRegionType = typename Superclass::OutputImageType::RegionType;
60
62 itkNewMacro(Self);
63
65 itkOverrideGetNameOfClassMacro(NesterovUpdateImageFilter);
66
68 itkGetMacro(NumberOfIterations, int);
69 itkSetMacro(NumberOfIterations, int);
70
71protected:
74
76 void
78 void
79 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
80 void
82
83 void
85
93
94 // Internal images
95 typename TImage::Pointer m_Vk;
96 typename TImage::Pointer m_Alphak;
97};
98} // namespace rtk
99
100
101#ifndef ITK_MANUAL_INSTANTIATION
102# include "rtkNesterovUpdateImageFilter.hxx"
103#endif
104
105#endif
Base class for filters that take an image as input and overwrite that image as the output.
Traits for a pixel that define the dimension and component type.
Implements transparent reference counting.
void GenerateInputRequestedRegion() override
typename Superclass::OutputImageType::RegionType OutputImageRegionType
itk::InPlaceImageFilter< TOutputImage, TOutputImage > Superclass
itk::PixelTraits< typenameTImage::PixelType >::ValueType m_TCoeff
void AfterThreadedGenerateData() override
itk::PixelTraits< typenameTImage::PixelType >::ValueType m_TCoeffNext
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void BeforeThreadedGenerateData() override
itk::PixelTraits< typenameTImage::PixelType >::ValueType m_Sum
itk::PixelTraits< typenameTImage::PixelType >::ValueType m_Ratio
#define itkSetMacro(name, type)