ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkSplatWithKnownWeightsImageFilter.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 rtkSplatWithKnownWeightsImageFilter_h
19#define rtkSplatWithKnownWeightsImageFilter_h
20
21#include <itkArray2D.h>
23
25
26#include "rtkMacro.h"
27
28namespace rtk
29{
65
66template <typename VolumeSeriesType, typename VolumeType>
67class ITK_TEMPLATE_EXPORT SplatWithKnownWeightsImageFilter
68 : public itk::InPlaceImageFilter<VolumeSeriesType, VolumeSeriesType>
69{
70public:
71 ITK_DISALLOW_COPY_AND_MOVE(SplatWithKnownWeightsImageFilter);
72
77 using OutputImageRegionType = typename VolumeSeriesType::RegionType;
78
80 itkNewMacro(Self);
81
83 itkOverrideGetNameOfClassMacro(SplatWithKnownWeightsImageFilter);
84
86 void
87 SetInputVolumeSeries(const VolumeSeriesType * VolumeSeries);
88
90 void
91 SetInputVolume(const VolumeType * Volume);
92
94 itkGetMacro(Weights, itk::Array2D<float>);
96
97 itkGetMacro(ProjectionNumber, int);
98 void
100
101protected:
104
105 typename VolumeSeriesType::ConstPointer
107 typename VolumeType::Pointer
109
111 void
112 ThreadedGenerateData(const typename VolumeSeriesType::RegionType & outputRegionForThread,
113 itk::ThreadIdType itkNotUsed(threadId)) override;
114
116 [[nodiscard]] const itk::ImageRegionSplitterBase *
117 GetImageRegionSplitter() const override;
119
122};
123} // namespace rtk
124
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "rtkSplatWithKnownWeightsImageFilter.hxx"
128#endif
129
130#endif
Array2D class representing a 2D array.
Definition itkArray2D.h:43
Divide an image region into several pieces.
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.
typename VolumeSeriesType::RegionType OutputImageRegionType
~SplatWithKnownWeightsImageFilter() override=default
void ThreadedGenerateData(const typename VolumeSeriesType::RegionType &outputRegionForThread, itk::ThreadIdType threadId) override
itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > Superclass
void SetInputVolumeSeries(const VolumeSeriesType *VolumeSeries)
const itk::ImageRegionSplitterBase * GetImageRegionSplitter() const override
VolumeSeriesType::ConstPointer GetInputVolumeSeries()
void SetInputVolume(const VolumeType *Volume)
VolumeType::Pointer GetInputVolume()
itk::ImageRegionSplitterDirection::Pointer m_Splitter
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)