ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkSubSelectImageFilter.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 rtkSubSelectImageFilter_h
19#define rtkSubSelectImageFilter_h
20
24#include <itkPasteImageFilter.h>
25
26namespace rtk
27{
28
63template <typename ProjectionStackType>
64class ITK_TEMPLATE_EXPORT SubSelectImageFilter
65 : public itk::ImageToImageFilter<ProjectionStackType, ProjectionStackType>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(SubSelectImageFilter);
69
74
76 itkOverrideGetNameOfClassMacro(SubSelectImageFilter);
77
79 void
80 SetInputProjectionStack(const ProjectionStackType * Projections);
81 typename ProjectionStackType::ConstPointer
83
88
89 itkSetObjectMacro(InputGeometry, GeometryType);
90 itkGetModifiableObjectMacro(InputGeometry, GeometryType);
91
92 itkGetMacro(SelectedProjections, std::vector<bool>);
93
96
97protected:
99 ~SubSelectImageFilter() override = default;
100
102 void
103 VerifyPreconditions() const override;
104
105 void
107
108 void
110
112 void
113 GenerateData() override;
114
118 std::vector<bool> m_SelectedProjections;
120
121private:
125};
126} // namespace rtk
127
128
129#ifndef ITK_MANUAL_INSTANTIATION
130# include "rtkSubSelectImageFilter.hxx"
131#endif
132
133#endif
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.
Paste an image (or a constant value) into another image.
Implements transparent reference counting.
Generate an n-dimensional image with constant pixel values.
itk::ImageToImageFilter< ProjectionStackType, ProjectionStackType > Superclass
ProjectionStackType::ConstPointer GetInputProjectionStack()
void GenerateOutputInformation() override
GeometryType::Pointer GetOutputGeometry()
ExtractFilterType::Pointer m_ExtractFilter
void VerifyPreconditions() const override
itk::SmartPointer< Self > Pointer
GeometryType::Pointer m_OutputGeometry
std::vector< bool > m_SelectedProjections
void GenerateInputRequestedRegion() override
void SetInputProjectionStack(const ProjectionStackType *Projections)
GeometryType::Pointer m_InputGeometry
~SubSelectImageFilter() override=default
itk::PasteImageFilter< ProjectionStackType > PasteFilterType
itk::ExtractImageFilter< ProjectionStackType, ProjectionStackType > ExtractFilterType
PasteFilterType::Pointer m_PasteFilter
rtk::ConstantImageSource< ProjectionStackType > EmptyProjectionStackSourceType
void GenerateData() override
EmptyProjectionStackSourceType::Pointer m_EmptyProjectionStackSource
rtk::ThreeDCircularProjectionGeometry GeometryType
Projection geometry for a source and a 2-D flat panel.