ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPathAndImageToPathFilter.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 itkPathAndImageToPathFilter_h
19 #define itkPathAndImageToPathFilter_h
20 
21 #include "itkPathToPathFilter.h"
22 
23 namespace itk
24 {
37 template< typename TInputPath, typename TInputImage, typename TOutputPath >
38 class ITK_TEMPLATE_EXPORT PathAndImageToPathFilter:
39  public PathToPathFilter< TInputPath, TOutputPath >
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(PathAndImageToPathFilter);
43 
49 
51  itkNewMacro(Self);
52 
55 
57  using InputPathType = TInputPath;
58  using InputPathPointer = typename InputPathType::Pointer;
59  using InputPathConstPointer = typename InputPathType::ConstPointer;
60  using InputPathInputType = typename InputPathType::InputType;
61  using InputPathOutputType = typename InputPathType::OutputType;
63  using InputPathOffsetType = typename InputPathType::OffsetType;
64  using InputImageType = TInputImage;
65  using InputImagePointer = typename InputImageType::ConstPointer;
67  using InputImagePixelType = typename InputImageType::PixelType;
68  using OutputPathType = TOutputPath;
74 
76  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
77 
79  virtual void SetPathInput(const TInputPath *path);
80 
81  const InputPathType * GetPathInput();
82 
84  virtual void SetImageInput(const TInputImage *image);
85 
86  const InputImageType * GetImageInput();
87 
88 protected:
90  ~PathAndImageToPathFilter() override = default;
91 
92  void PrintSelf(std::ostream & os, Indent indent) const override;
93 
101  void GenerateInputRequestedRegion() override;
102 };
103 } // end namespace itk
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "itkPathAndImageToPathFilter.hxx"
108 #endif
109 
110 #endif
Light weight base class for most itk classes.
Base class for filters that take both a path and an image as input and produce a path as output...
Represent an orthogonally corrected 2D parametric path.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
Definition: itkOffset.h:67
Base class for filters that take a path as input and produce a path as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49