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 
23 namespace itk
24 {
25 
32 template< class TInputImage, class TOutputVectorContainer >
34  public VectorContainerSource< TOutputVectorContainer >
35 {
36 public:
37 
42  typedef SmartPointer< const Self > ConstPointer;
43 
45  itkNewMacro( Self );
46 
49 
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::Pointer InputImagePointer;
58  typedef typename InputImageType::ConstPointer InputImageConstPointer;
59  typedef typename InputImageType::RegionType InputImageRegionType;
60  typedef typename InputImageType::PixelType InputImagePixelType;
61 
63  DataObject::Pointer MakeOutput( unsigned int idx );
64 
66  void SetInput( unsigned int idx, const InputImageType * input );
67 
69  void SetInput( const InputImageType * input );
70 
72  const InputImageType * GetInput( void );
73 
75  const InputImageType * GetInput( unsigned int idx );
76 
78  OutputVectorContainerType * GetOutput( void );
79 
81  //virtual void GenerateOutputInformation( void );
82 
98  virtual void GenerateData( void );
99 
122  virtual void ThreadedGenerateData(
123  const InputImageRegionType & inputRegionForThread,
124  ThreadIdType threadId );
125 
136  virtual void BeforeThreadedGenerateData( void ) {}
137 
148  virtual void AfterThreadedGenerateData( void ) {}
149 
155  virtual unsigned int SplitRequestedRegion( const ThreadIdType & threadId,
156  const ThreadIdType & numberOfSplits, InputImageRegionType & splitRegion );
157 
161  static ITK_THREAD_RETURN_TYPE ThreaderCallback( void * arg );
162 
164  struct ThreadStruct //?
165  {
166  Pointer Filter;
167  };
168 
169 protected:
170 
175 
177  void PrintSelf( std::ostream & os, Indent indent ) const;
178 
179 private:
180 
182  ImageToVectorContainerFilter( const Self & ); // purposely not implemented
184  void operator=( const Self & ); // purposely not implemented
185 
186 };
187 
188 } // end namespace itk
189 
190 #ifndef ITK_MANUAL_INSTANTIATION
191 #include "itkImageToVectorContainerFilter.hxx"
192 #endif
193 
194 #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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo