ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkImageToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 __itkImageToPathFilter_h
19 #define __itkImageToPathFilter_h
20 
21 #include "itkImage.h"
22 #include "itkPathSource.h"
23 
24 namespace itk
25 {
42 template< typename TInputImage, typename TOutputPath >
43 class ImageToPathFilter:public PathSource< TOutputPath >
44 {
45 public:
51 
53  itkTypeMacro(ImageToPathFilter, PathSource);
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  itkStaticConstMacro(InputImageDimension, unsigned int,
64  TInputImage::ImageDimension);
65 
68  virtual void SetInput(const InputImageType *image);
69 
70  virtual void SetInput(unsigned int, const TInputImage *image);
71 
72  const InputImageType * GetInput(void);
73 
74  const InputImageType * GetInput(unsigned int idx);
75 
76 protected:
79 
80  virtual void PrintSelf(std::ostream & os, Indent indent) const;
81 
82 private:
83  ImageToPathFilter(const Self &); //purposely not implemented
84  void operator=(const Self &); //purposely not implemented
85 };
86 } // end namespace itk
87 
88 #ifndef ITK_MANUAL_INSTANTIATION
89 #include "itkImageToPathFilter.hxx"
90 #endif
91 
92 #endif
Light weight base class for most itk classes.
Base class for all process objects that output path data.
Definition: itkPathSource.h:41
Base class for filters that take an image as input and produce an path as output. ...
InputImageType::Pointer InputImagePointer
static const unsigned int InputImageDimension
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
virtual void SetInput(const InputImageType *image)
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
PathSource< TOutputPath > Superclass
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InputImageType::RegionType InputImageRegionType
void operator=(const Self &)
const InputImageType * GetInput(void)
virtual void PrintSelf(std::ostream &os, Indent indent) const
InputImageType::ConstPointer InputImageConstPointer
InputImageType::PixelType InputImagePixelType