ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkInterpolatorWithKnownWeightsImageFilter.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 rtkInterpolatorWithKnownWeightsImageFilter_h
19#define rtkInterpolatorWithKnownWeightsImageFilter_h
20
22#include "itkArray2D.h"
23#include "rtkConfiguration.h"
24#include "rtkMacro.h"
25
26namespace rtk
27{
63template <typename VolumeType, typename VolumeSeriesType>
65 : public itk::InPlaceImageFilter<VolumeType, VolumeType>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(InterpolatorWithKnownWeightsImageFilter);
69
74
76 itkNewMacro(Self);
77
79 itkOverrideGetNameOfClassMacro(InterpolatorWithKnownWeightsImageFilter);
80
82 void
83 SetInputVolume(const VolumeType * Volume);
84
86 void
87 SetInputVolumeSeries(const VolumeSeriesType * VolumeSeries);
88
90 itkGetMacro(Weights, itk::Array2D<float>);
92
93 itkGetMacro(ProjectionNumber, int);
94 void
96
97protected:
100
101 typename VolumeType::ConstPointer
103 typename VolumeSeriesType::Pointer
105
106 void
108
110 void
111 DynamicThreadedGenerateData(const typename VolumeType::RegionType & outputRegionForThread) override;
112
115};
116} // namespace rtk
117
118
120
121#if defined(RTK_USE_CUDA) && defined(RTK_EXTERN_TEMPLATES)
122ITK_GCC_PRAGMA_DIAG_PUSH()
123ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
124extern template class RTK_EXPORT_EXPLICIT
125 rtk::InterpolatorWithKnownWeightsImageFilter<itk::CudaImage<float, 3>, itk::CudaImage<float, 4>>;
126ITK_GCC_PRAGMA_DIAG_POP()
127#endif
128
129#ifndef ITK_MANUAL_INSTANTIATION
130# include "rtkInterpolatorWithKnownWeightsImageFilter.hxx"
131#endif
132
133#endif
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Base class for filters that take an image as input and produce an image as output.
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
~InterpolatorWithKnownWeightsImageFilter() override=default
VolumeType::ConstPointer GetInputVolume()
VolumeSeriesType::Pointer GetInputVolumeSeries()
void SetInputVolume(const VolumeType *Volume)
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
itk::ImageToImageFilter< VolumeType, VolumeType > Superclass
void DynamicThreadedGenerateData(const typename VolumeType::RegionType &outputRegionForThread) override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)