ITK  5.0.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:
43  ITK_DISALLOW_COPY_AND_ASSIGN(ImageAndPathToImageFilter);
44 
50 
52  itkNewMacro(Self);
53 
56 
58  using InputImageType = TInputImage;
59  using InputImagePointer = typename InputImageType::ConstPointer;
61  using InputImagePixelType = typename InputImageType::PixelType;
62  using InputPathType = TInputPath;
69  using OutputImageType = TOutputImage;
70  using OutputImagePointer = typename OutputImageType::Pointer;
72  using OutputImagePixelType = typename OutputImageType::PixelType;
73 
75  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
77 
79  virtual void SetImageInput(const TInputImage *image);
80 
81 
83  virtual void SetPathInput(const TInputPath *path);
84 
85  const InputImageType * GetImageInput();
86  const InputPathType * GetPathInput();
87 
88 protected:
89  InputImageType * GetNonConstImageInput();
90  InputPathType * GetNonConstPathInput();
92  ~ImageAndPathToImageFilter() override = default;
93 
94  void PrintSelf(std::ostream & os, Indent indent) const override;
95 };
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkImageAndPathToImageFilter.hxx"
100 #endif
101 
102 #endif
typename OutputImageType::Pointer OutputImagePointer
Light weight base class for most itk classes.
typename Superclass::InputType InputType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
Base class for filters that take both a path and an image as input and produce a path as output...
typename OutputImageType::RegionType OutputImageRegionType
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
Definition: itkOffset.h:67
typename InputImageType::RegionType InputImageRegionType
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
typename Superclass::OutputType OutputType