ITK  5.4.0
Insight Toolkit
itkPathAndImageToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 {
38 template <typename TInputPath, typename TInputImage, typename TOutputPath>
39 class ITK_TEMPLATE_EXPORT PathAndImageToPathFilter : public PathToPathFilter<TInputPath, TOutputPath>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(PathAndImageToPathFilter);
43 
49 
51  itkNewMacro(Self);
52 
54  itkOverrideGetNameOfClassMacro(PathAndImageToPathFilter);
55 
57  using InputPathType = TInputPath;
60  using InputPathInputType = typename InputPathType::InputType;
61  using InputPathOutputType = typename InputPathType::OutputType;
63  using InputPathOffsetType = typename InputPathType::OffsetType;
64  using InputImageType = TInputImage;
67  using InputImagePixelType = typename InputImageType::PixelType;
68  using OutputPathType = TOutputPath;
74 
76  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
77 
79  virtual void
80  SetPathInput(const TInputPath * path);
81 
82  const InputPathType *
83  GetPathInput();
84 
86  virtual void
87  SetImageInput(const TInputImage * image);
88 
89  const InputImageType *
90  GetImageInput();
91 
92 protected:
94  ~PathAndImageToPathFilter() override = default;
95 
96  void
97  PrintSelf(std::ostream & os, Indent indent) const override;
98 
106  void
107  GenerateInputRequestedRegion() override;
108 };
109 } // end namespace itk
112 #ifndef ITK_MANUAL_INSTANTIATION
113 # include "itkPathAndImageToPathFilter.hxx"
114 #endif
115 
116 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathOffsetType
typename InputPathType::OffsetType InputPathOffsetType
Definition: itkPathAndImageToPathFilter.h:63
ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAddImageFilter.h:94
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathConstPointer
typename InputPathType::ConstPointer InputPathConstPointer
Definition: itkPathAndImageToPathFilter.h:59
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkPathAndImageToPathFilter.h:66
itk::OrthogonallyCorrected2DParametricPath
Represent an orthogonally corrected 2D parametric path.
Definition: itkOrthogonallyCorrected2DParametricPath.h:45
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::OutputPathOffsetType
typename OutputPathType::OffsetType OutputPathOffsetType
Definition: itkPathAndImageToPathFilter.h:73
itk::OrthogonallyCorrected2DParametricPath::InputType
Superclass::InputType InputType
Definition: itkOrthogonallyCorrected2DParametricPath.h:60
itk::PathToPathFilter
Base class for filters that take a path as input and produce a path as output.
Definition: itkPathToPathFilter.h:38
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathPointer
typename InputPathType::Pointer InputPathPointer
Definition: itkPathAndImageToPathFilter.h:58
itk::OrthogonallyCorrected2DParametricPath::OutputType
Superclass::OutputType OutputType
Definition: itkOrthogonallyCorrected2DParametricPath.h:63
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathOutputType
typename InputPathType::OutputType InputPathOutputType
Definition: itkPathAndImageToPathFilter.h:61
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkPathAndImageToPathFilter.h:67
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathInputType
typename InputPathType::InputType InputPathInputType
Definition: itkPathAndImageToPathFilter.h:60
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::OutputPathIndexType
typename OutputPathType::IndexType OutputPathIndexType
Definition: itkPathAndImageToPathFilter.h:72
itk::PathAndImageToPathFilter
Base class for filters that take both a path and an image as input and produce a path as output.
Definition: itkPathAndImageToPathFilter.h:39
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::OutputPathOutputType
typename OutputPathType::OutputType OutputPathOutputType
Definition: itkPathAndImageToPathFilter.h:71
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputImageType
TSwathMeritImage InputImageType
Definition: itkPathAndImageToPathFilter.h:64
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::OutputPathInputType
typename OutputPathType::InputType OutputPathInputType
Definition: itkPathAndImageToPathFilter.h:70
itk::Offset
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition: itkOffset.h:69
itkPathToPathFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathIndexType
typename InputPathType::IndexType InputPathIndexType
Definition: itkPathAndImageToPathFilter.h:62
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputPathType
TFourierSeriesPath InputPathType
Definition: itkPathAndImageToPathFilter.h:57
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::OutputPathPointer
typename OutputPathType::Pointer OutputPathPointer
Definition: itkPathAndImageToPathFilter.h:69
itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >::InputImagePointer
typename InputImageType::ConstPointer InputImagePointer
Definition: itkPathAndImageToPathFilter.h:65