ITK  5.3.0
Insight Toolkit
itkImageAndPathToImageFilter.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  * 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 {
39 template <typename TInputImage, typename TInputPath, typename TOutputImage>
40 class ITK_TEMPLATE_EXPORT ImageAndPathToImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_MOVE(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
80  SetImageInput(const TInputImage * image);
81 
82 
84  virtual void
85  SetPathInput(const TInputPath * path);
86 
87  const InputImageType *
88  GetImageInput();
89  const InputPathType *
90  GetPathInput();
91 
92 protected:
94  GetNonConstImageInput();
96  GetNonConstPathInput();
98  ~ImageAndPathToImageFilter() override = default;
99 
100  void
101  PrintSelf(std::ostream & os, Indent indent) const override;
102 };
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 # include "itkImageAndPathToImageFilter.hxx"
107 #endif
108 
109 #endif
itk::ImageAndPathToImageFilter
Base class for filters that take both a path and an image as input and produce a path as output.
Definition: itkImageAndPathToImageFilter.h:40
itk::ImageSource< TImage >::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathOutputType
typename InputPathType::OutputType InputPathOutputType
Definition: itkImageAndPathToImageFilter.h:66
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathPointer
typename InputPathType::Pointer InputPathPointer
Definition: itkImageAndPathToImageFilter.h:63
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathInputType
typename InputPathType::InputType InputPathInputType
Definition: itkImageAndPathToImageFilter.h:65
itk::ParametricPath< 2 >
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathIndexType
typename InputPathType::IndexType InputPathIndexType
Definition: itkImageAndPathToImageFilter.h:67
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathOffsetType
typename InputPathType::OffsetType InputPathOffsetType
Definition: itkImageAndPathToImageFilter.h:68
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToImageFilter< TImage, TImage >::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::ImageAndPathToImageFilter< TImage, ParametricPath< 2 >, TImage >::InputPathConstPointer
typename InputPathType::ConstPointer InputPathConstPointer
Definition: itkImageAndPathToImageFilter.h:64
itk::ImageToImageFilter< TImage, TImage >::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter< TImage, TImage >::InputImageType
TImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::Offset
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition: itkOffset.h:67
itk::ImageSource< TImage >::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >::InputType
double InputType
Definition: itkPath.h:72
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ContinuousIndex
A templated class holding a point in n-Dimensional image space.
Definition: itkContinuousIndex.h:46
itk::ImageSource< TImage >::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itk::ImageToImageFilter< TImage, TImage >::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::ImageSource< TImage >::OutputImageType
TImage OutputImageType
Definition: itkImageSource.h:90