ITK  4.13.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 >
39 class ITK_TEMPLATE_EXPORT ImageAndPathToImageFilter:
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();
87  const InputPathType * GetPathInput();
88 
89 protected:
90  InputImageType * GetNonConstImageInput();
91  InputPathType * GetNonConstPathInput();
93  virtual ~ImageAndPathToImageFilter() ITK_OVERRIDE {}
94 
95  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
96 
97 private:
98  ITK_DISALLOW_COPY_AND_ASSIGN(ImageAndPathToImageFilter);
99 };
100 } // end namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkImageAndPathToImageFilter.hxx"
104 #endif
105 
106 #endif
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Light weight base class for most itk classes.
Superclass::OutputType OutputType
InputPathType::OffsetType InputPathOffsetType
OutputImageType::RegionType OutputImageRegionType
Superclass::InputType InputType
InputImageType::ConstPointer InputImagePointer
InputPathType::OutputType InputPathOutputType
InputImageType::PixelType InputImagePixelType
Base class for filters that take both a path and an image as input and produce a path as output...
InputPathType::ConstPointer InputPathConstPointer
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
OutputImageType::PixelType OutputImagePixelType
InputImageType::RegionType InputImageRegionType