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  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __itkImageToVectorContainerFilter_h
15 #define __itkImageToVectorContainerFilter_h
16 
18 
19 namespace itk
20 {
21 
28 template< class TInputImage, class TOutputVectorContainer >
30  public VectorContainerSource< TOutputVectorContainer >
31 {
32 public:
33 
37  typedef SmartPointer< Self > Pointer;
38  typedef SmartPointer< const Self > ConstPointer;
39 
41  itkNewMacro( Self );
42 
45 
50 
52  typedef TInputImage InputImageType;
53  typedef typename InputImageType::Pointer InputImagePointer;
54  typedef typename InputImageType::ConstPointer InputImageConstPointer;
55  typedef typename InputImageType::RegionType InputImageRegionType;
56  typedef typename InputImageType::PixelType InputImagePixelType;
57 
59  DataObject::Pointer MakeOutput( unsigned int idx );
60 
62  void SetInput( unsigned int idx, const InputImageType * input );
63 
65  void SetInput( const InputImageType * input );
66 
68  const InputImageType * GetInput( void );
69 
71  const InputImageType * GetInput( unsigned int idx );
72 
75 
77  //virtual void GenerateOutputInformation( void );
78 
94  virtual void GenerateData( void );
95 
118  virtual void ThreadedGenerateData(
119  const InputImageRegionType & inputRegionForThread,
120  ThreadIdType threadId );
121 
132  virtual void BeforeThreadedGenerateData( void ) {}
133 
144  virtual void AfterThreadedGenerateData( void ) {}
145 
151  virtual unsigned int SplitRequestedRegion( const ThreadIdType & threadId,
152  const ThreadIdType & numberOfSplits, InputImageRegionType & splitRegion );
153 
157  static ITK_THREAD_RETURN_TYPE ThreaderCallback( void * arg );
158 
160  struct ThreadStruct //?
161  {
163  };
164 
165 protected:
166 
171 
173  void PrintSelf( std::ostream & os, Indent indent ) const;
174 
175 private:
176 
178  ImageToVectorContainerFilter( const Self & ); // purposely not implemented
180  void operator=( const Self & ); // purposely not implemented
181 
182 };
183 
184 } // end namespace itk
185 
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkImageToVectorContainerFilter.hxx"
188 #endif
189 
190 #endif // end #ifndef __itkImageToVectorContainerFilter_h
OutputVectorContainerType * GetOutput(void)
virtual void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId)
const InputImageType * GetInput(void)
VectorContainerSource< TOutputVectorContainer > Superclass
void PrintSelf(std::ostream &os, Indent indent) const
A base class for creating an ImageToVectorContainerFilter.
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
void SetInput(unsigned int idx, const InputImageType *input)
Superclass::OutputVectorContainerType OutputVectorContainerType
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
InputImageType::ConstPointer InputImageConstPointer
virtual unsigned int SplitRequestedRegion(const ThreadIdType &threadId, const ThreadIdType &numberOfSplits, InputImageRegionType &splitRegion)
static ITK_THREAD_RETURN_TYPE ThreaderCallback(void *arg)
Superclass::DataObjectPointer DataObjectPointer
DataObject::Pointer MakeOutput(unsigned int idx)
Base class that takes in an image and pops out a vector container.


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo