go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageToVectorContainerFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 * http://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 itkImageToVectorContainerFilter_h
19#define itkImageToVectorContainerFilter_h
20
22#include "itkPlatformMultiThreader.h"
23
24namespace itk
25{
26
33template <class TInputImage, class TOutputVectorContainer>
34class ITK_TEMPLATE_EXPORT ImageToVectorContainerFilter : public VectorContainerSource<TOutputVectorContainer>
35{
36public:
38
42 using Pointer = SmartPointer<Self>;
43 using ConstPointer = SmartPointer<const Self>;
44
46 itkNewMacro(Self);
47
50
52 using typename Superclass::DataObjectPointer;
55
57 using InputImageType = TInputImage;
58 using InputImagePointer = typename InputImageType::Pointer;
59 using InputImageConstPointer = typename InputImageType::ConstPointer;
60 using InputImageRegionType = typename InputImageType::RegionType;
61 using InputImagePixelType = typename InputImageType::PixelType;
62
64 DataObject::Pointer
65 MakeOutput(unsigned int idx) override;
66
68 void
69 SetInput(unsigned int idx, const InputImageType * input);
70
72 void
73 SetInput(const InputImageType * input);
74
76 const InputImageType *
78
80 const InputImageType *
81 GetInput(unsigned int idx);
82
86
88 // virtual void GenerateOutputInformation();
89
105 void
106 GenerateData() override;
107
130 virtual void
131 ThreadedGenerateData(const InputImageRegionType & inputRegionForThread, ThreadIdType threadId);
132
143 virtual void
145 {}
146
157 virtual void
159 {}
160
166 virtual unsigned int
167 SplitRequestedRegion(const ThreadIdType & threadId,
168 const ThreadIdType & numberOfSplits,
169 InputImageRegionType & splitRegion);
170
174 static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION
175 ThreaderCallback(void * arg);
176
178 struct ThreadStruct //?
179 {
181 };
182
183protected:
187 ~ImageToVectorContainerFilter() override = default;
188
190 void
191 PrintSelf(std::ostream & os, Indent indent) const override;
192};
193
194} // end namespace itk
195
196#ifndef ITK_MANUAL_INSTANTIATION
197# include "itkImageToVectorContainerFilter.hxx"
198#endif
199
200#endif // end #ifndef itkImageToVectorContainerFilter_h
Base class that takes in an image and pops out a vector container.
virtual unsigned int SplitRequestedRegion(const ThreadIdType &threadId, const ThreadIdType &numberOfSplits, InputImageRegionType &splitRegion)
void SetInput(const InputImageType *input)
const InputImageType * GetInput(unsigned int idx)
ITK_DISALLOW_COPY_AND_MOVE(ImageToVectorContainerFilter)
typename InputImageType::PixelType InputImagePixelType
TOutputVectorContainer OutputVectorContainerType
OutputVectorContainerType * GetOutput()
typename InputImageType::ConstPointer InputImageConstPointer
const InputImageType * GetInput()
typename InputImageType::RegionType InputImageRegionType
DataObject::Pointer MakeOutput(unsigned int idx) override
typename InputImageType::Pointer InputImagePointer
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
void PrintSelf(std::ostream &os, Indent indent) const override
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback(void *arg)
~ImageToVectorContainerFilter() override=default
void SetInput(unsigned int idx, const InputImageType *input)
A base class for creating an ImageToVectorContainerFilter.
TOutputVectorContainer OutputVectorContainerType
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo