ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPipelineMonitorImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 itkPipelineMonitorImageFilter_h
19#define itkPipelineMonitorImageFilter_h
20
22
23namespace itk
24{
25
67template <typename TImageType>
68class ITK_TEMPLATE_EXPORT PipelineMonitorImageFilter : public ImageToImageFilter<TImageType, TImageType>
69{
70public:
71 ITK_DISALLOW_COPY_AND_MOVE(PipelineMonitorImageFilter);
72
77
78 using PointType = typename TImageType::PointType;
79 using DirectionType = typename TImageType::DirectionType;
80 using SpacingType = typename TImageType::SpacingType;
81 using InputImagePointer = typename TImageType::Pointer;
82 using InputImageConstPointer = typename TImageType::ConstPointer;
84
85 using RegionVectorType = std::vector<typename TImageType::RegionType>;
86
88 itkNewMacro(Self);
89
91 itkOverrideGetNameOfClassMacro(PipelineMonitorImageFilter);
92
102 itkSetMacro(ClearPipelineOnGenerateOutputInformation, bool);
103 itkGetMacro(ClearPipelineOnGenerateOutputInformation, bool);
104 itkBooleanMacro(ClearPipelineOnGenerateOutputInformation);
106
107
113 bool
114 VerifyAllInputCanStream(int expectedNumber);
115
116
120 bool
122
126 bool
128
129 bool
131
141 bool
143
148 bool
150
152 bool
154
155 bool
157
158 bool
160
161
162 unsigned int
164 {
165 return m_NumberOfUpdates;
166 }
167 RegionVectorType
172 RegionVectorType
174 {
176 }
177 RegionVectorType
182 RegionVectorType
187
188 itkGetConstMacro(UpdatedOutputOrigin, PointType);
189 itkGetConstMacro(UpdatedOutputDirection, DirectionType);
190 itkGetConstMacro(UpdatedOutputSpacing, SpacingType);
191 itkGetConstMacro(UpdatedOutputLargestPossibleRegion, ImageRegionType);
192
195 void
197
198
202 void
204 void
206 void
208 void
210 void
211 GenerateData() override;
213
214protected:
216
217 // ~PipelineMonitorImageFilter() { } default implementation OK
218
219 void
220 PrintSelf(std::ostream & os, Indent indent) const override;
221
222private:
224
225 unsigned int m_NumberOfUpdates{};
226
228
233
238};
239} // end namespace itk
240
241#ifndef ITK_MANUAL_INSTANTIATION
242# include "itkPipelineMonitorImageFilter.hxx"
243#endif
244
245#endif // itkPipelineMonitorImageFilter_hxx
Base class for all data objects in ITK.
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
bool VerifyInputFilterExecutedStreaming(int expectedNumber)
bool VerifyAllInputCanStream(int expectedNumber)
std::vector< typename TImageType::RegionType > RegionVectorType
void GenerateOutputInformation() override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename TImageType::PointType PointType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion() override
typename TImageType::SpacingType SpacingType
typename TImageType::DirectionType DirectionType
typename TImageType::Pointer InputImagePointer
void PropagateRequestedRegion(DataObject *output) override
typename Superclass::InputImageRegionType ImageRegionType
bool VerifyInputFilterMatchedUpdateOutputInformation()
ImageToImageFilter< TImageType, TImageType > Superclass
typename TImageType::ConstPointer InputImageConstPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....