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 >
35 public VectorContainerSource< TOutputVectorContainer >
36{
37public:
38
43 typedef SmartPointer< const Self > ConstPointer;
44
46 itkNewMacro( Self );
47
50
55
57 typedef TInputImage InputImageType;
58 typedef typename InputImageType::Pointer InputImagePointer;
59 typedef typename InputImageType::ConstPointer InputImageConstPointer;
60 typedef typename InputImageType::RegionType InputImageRegionType;
61 typedef typename InputImageType::PixelType InputImagePixelType;
62
64 DataObject::Pointer MakeOutput( unsigned int idx ) override;
65
67 void SetInput( unsigned int idx, const InputImageType * input );
68
70 void SetInput( const InputImageType * input );
71
73 const InputImageType * GetInput( void );
74
76 const InputImageType * GetInput( unsigned int idx );
77
80
82 //virtual void GenerateOutputInformation( void );
83
99 void GenerateData( void ) override;
100
124 const InputImageRegionType & inputRegionForThread,
125 ThreadIdType threadId );
126
137 virtual void BeforeThreadedGenerateData( void ) {}
138
149 virtual void AfterThreadedGenerateData( void ) {}
150
156 virtual unsigned int SplitRequestedRegion( const ThreadIdType & threadId,
157 const ThreadIdType & numberOfSplits, InputImageRegionType & splitRegion );
158
162 static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback( void * arg );
163
165 struct ThreadStruct //?
166 {
168 };
169
170protected:
171
176
178 void PrintSelf( std::ostream & os, Indent indent ) const override;
179
180private:
181
183 ImageToVectorContainerFilter( const Self & ); // purposely not implemented
185 void operator=( const Self & ); // purposely not implemented
186
187};
188
189} // end namespace itk
190
191#ifndef ITK_MANUAL_INSTANTIATION
192#include "itkImageToVectorContainerFilter.hxx"
193#endif
194
195#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)
Superclass::OutputVectorContainerType OutputVectorContainerType
const InputImageType * GetInput(unsigned int idx)
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
DataObject::Pointer MakeOutput(unsigned int idx) override
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
InputImageType::ConstPointer InputImageConstPointer
const InputImageType * GetInput(void)
Superclass::DataObjectPointer DataObjectPointer
OutputVectorContainerType * GetOutput(void)
void PrintSelf(std::ostream &os, Indent indent) const override
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback(void *arg)
VectorContainerSource< TOutputVectorContainer > Superclass
ImageToVectorContainerFilter(const Self &)
void GenerateData(void) override
void SetInput(unsigned int idx, const InputImageType *input)
A base class for creating an ImageToVectorContainerFilter.
TOutputVectorContainer OutputVectorContainerType
Superclass::DataObjectPointer DataObjectPointer
OutputVectorContainerType::Pointer OutputVectorContainerPointer


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo