ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkProjectionStackToFourDImageFilter.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 rtkProjectionStackToFourDImageFilter_h
19#define rtkProjectionStackToFourDImageFilter_h
20
21#include <itkArray2D.h>
23
28
29#ifdef RTK_USE_CUDA
33#endif
34
35namespace rtk
36{
103
104template <typename VolumeSeriesType, typename ProjectionStackType, typename TFFTPrecision = double>
105class ITK_TEMPLATE_EXPORT ProjectionStackToFourDImageFilter
106 : public itk::ImageToImageFilter<VolumeSeriesType, VolumeSeriesType>
107{
108public:
109 ITK_DISALLOW_COPY_AND_MOVE(ProjectionStackToFourDImageFilter);
110
115
117 using VolumeType = ProjectionStackType;
118
120 itkNewMacro(Self);
121
123 itkOverrideGetNameOfClassMacro(ProjectionStackToFourDImageFilter);
124
126 void
127 SetInputVolumeSeries(const VolumeSeriesType * VolumeSeries);
128 typename VolumeSeriesType::ConstPointer
130
132 void
133 SetInputProjectionStack(const ProjectionStackType * Projection);
134 typename ProjectionStackType::ConstPointer
136
142
144
148#ifdef RTK_USE_CUDA
149 using CudaSplatImageFilterType = typename std::
150 conditional_t<std::is_same_v<VolumeSeriesType, CPUVolumeSeriesType>, SplatFilterType, CudaSplatImageFilter>;
152 typename std::conditional_t<std::is_same_v<VolumeSeriesType, CPUVolumeSeriesType>,
154 CudaConstantVolumeSource>;
156 typename std::conditional_t<std::is_same_v<VolumeSeriesType, CPUVolumeSeriesType>,
158 CudaConstantVolumeSeriesSource>;
159#else
163#endif
164
166 void
168
170 itkSetConstObjectMacro(Geometry, GeometryType);
171
173 itkSetMacro(UseCudaSplat, bool);
174 itkGetMacro(UseCudaSplat, bool);
175 itkSetMacro(UseCudaSources, bool);
176 itkGetMacro(UseCudaSources, bool);
177
179 itkGetMacro(Weights, itk::Array2D<float>);
181
183 virtual void
184 SetSignal(const std::vector<double> & signal);
185
186protected:
189
191 void
192 VerifyPreconditions() const override;
193
195 void
196 GenerateData() override;
197
198 void
200
201 void
203
204 void
206
213
219 std::vector<double> m_Signal;
220};
221} // namespace rtk
222
223
224#ifndef ITK_MANUAL_INSTANTIATION
225# include "rtkProjectionStackToFourDImageFilter.hxx"
226#endif
227
228#endif
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Decrease the image size by cropping the image to the selected region bounds.
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.
Generate an n-dimensional image with constant pixel values.
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
void VerifyPreconditions() const override
virtual void SetSignal(const std::vector< double > &signal)
itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > Superclass
itk::ExtractImageFilter< ProjectionStackType, ProjectionStackType > ExtractFilterType
rtk::SplatWithKnownWeightsImageFilter< VolumeSeriesType, VolumeType > SplatFilterType
ProjectionStackType::ConstPointer GetInputProjectionStack()
typename itk::Image< typename VolumeSeriesType::PixelType, VolumeSeriesType::ImageDimension > CPUVolumeSeriesType
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
void SetBackProjectionFilter(BackProjectionFilterType *_arg)
ConstantVolumeSeriesSourceType::Pointer m_ConstantVolumeSeriesSource
rtk::ConstantImageSource< VolumeType > ConstantImageSourceType
rtk::BackProjectionImageFilter< VolumeType, VolumeType > BackProjectionFilterType
void SetInputProjectionStack(const ProjectionStackType *Projection)
rtk::ConstantImageSource< VolumeSeriesType > ConstantVolumeSeriesSourceType
~ProjectionStackToFourDImageFilter() override=default
Splats (linearly) a 3D volume into a 3D+t sequence of volumes.
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)