ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkImageAndPathToImageFilter.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 __itkImageAndPathToImageFilter_h
19 #define __itkImageAndPathToImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
38 template< typename TInputImage, typename TInputPath, typename TOutputImage >
40  public ImageToImageFilter< TInputImage, TOutputImage >
41 {
42 public:
48 
50  itkNewMacro(Self);
51 
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::ConstPointer InputImagePointer;
58  typedef typename InputImageType::RegionType InputImageRegionType;
59  typedef typename InputImageType::PixelType InputImagePixelType;
60  typedef TInputPath InputPathType;
67  typedef TOutputImage OutputImageType;
68  typedef typename OutputImageType::Pointer OutputImagePointer;
69  typedef typename OutputImageType::RegionType OutputImageRegionType;
70  typedef typename OutputImageType::PixelType OutputImagePixelType;
71 
73  itkStaticConstMacro(InputImageDimension, unsigned int,
74  TInputImage::ImageDimension);
75  itkStaticConstMacro(OutputImageDimension, unsigned int,
76  TOutputImage::ImageDimension);
78 
80  virtual void SetImageInput(const TInputImage *image);
81 
82 
84  virtual void SetPathInput(const TInputPath *path);
85 
86  const InputImageType * GetImageInput(void);
87  const InputPathType * GetPathInput(void);
88 
89 protected:
94 
95  virtual void PrintSelf(std::ostream & os, Indent indent) const;
96 
97 private:
98  ImageAndPathToImageFilter(const Self &); //purposely not implemented
99  void operator=(const Self &); //purposely not implemented
100 };
101 } // end namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 #include "itkImageAndPathToImageFilter.hxx"
105 #endif
106 
107 #endif
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Light weight base class for most itk classes.
Superclass::OutputType OutputType
InputPathType::OffsetType InputPathOffsetType
OutputImageType::RegionType OutputImageRegionType
void operator=(const Self &)
Superclass::InputType InputType
virtual void SetPathInput(const TInputPath *path)
InputImageType::ConstPointer InputImagePointer
InputPathType::OutputType InputPathOutputType
InputImageType * GetNonConstImageInput(void)
InputImageType::PixelType InputImagePixelType
Base class for filters that take both a path and an image as input and produce a path as output...
InputPathType * GetNonConstPathInput(void)
InputPathType::ConstPointer InputPathConstPointer
static const unsigned int OutputImageDimension
const InputPathType * GetPathInput(void)
virtual void PrintSelf(std::ostream &os, Indent indent) const
virtual void SetImageInput(const TInputImage *image)
static const unsigned int InputImageDimension
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
const InputImageType * GetImageInput(void)
OutputImageType::PixelType OutputImagePixelType
InputImageType::RegionType InputImageRegionType