ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkRegionFromReferenceImageFilter.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 itkRegionFromReferenceImageFilter_h
19#define itkRegionFromReferenceImageFilter_h
20
22
23namespace itk
24{
25
39template <typename TInputImage, typename TOutputImage = TInputImage>
40class ITK_TEMPLATE_EXPORT RegionFromReferenceImageFilter : public ExtractImageFilter<TInputImage, TOutputImage>
41{
42public:
48
50 itkNewMacro(Self);
51
53 itkOverrideGetNameOfClassMacro(RegionFromReferenceImageFilter);
54
58
62
69
73 static constexpr unsigned int ImageDimension = Superclass::OutputImageDimension;
74
76
78 void
80
81 const ReferenceImageType *
83
85 void
86 SetInput1(const TInputImage * input)
87 {
88 this->SetInput(input);
89 }
90
92 void
94 {
95 this->SetReferenceImage(input);
96 }
97
98
99#ifdef ITK_USE_CONCEPT_CHECKING
104#endif
105
106protected:
109
110 virtual void
111 VerifyInputInformation() const override;
112
113 virtual void
115
116private:
117 RegionFromReferenceImageFilter(const Self &); // purposely not implemented
118 void
119 operator=(const Self &); // purposely not implemented
120};
121
122} // end namespace itk
123
124#ifndef ITK_MANUAL_INSTANTIATION
125# include "itkRegionFromReferenceImageFilter.hxx"
126#endif
127
128#endif
typename TOutputImage::IndexType OutputImageIndexType
typename TInputImage::IndexType InputImageIndexType
typename TOutputImage::PixelType OutputImagePixelType
static constexpr unsigned int InputImageDimension
typename TOutputImage::SizeType OutputImageSizeType
static constexpr unsigned int OutputImageDimension
typename TInputImage::SizeType InputImageSizeType
typename TOutputImage::RegionType OutputImageRegionType
typename TInputImage::PixelType InputImagePixelType
typename TInputImage::RegionType InputImageRegionType
Base class for templated image classes.
virtual void SetInput(const InputImageType *input)
virtual void SetNumberOfRequiredInputs(DataObjectPointerArraySizeType)
Set the number of required indexed inputs.
void SetReferenceImage(const ReferenceImageType *image)
~RegionFromReferenceImageFilter() override=default
void SetInput2(const ReferenceImageType *input)
virtual void VerifyInputInformation() const override
Verifies that the input images occupy the same physical space and the each index is at the same physi...
const ReferenceImageType * GetReferenceImage() const
virtual void GenerateOutputInformation() override
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....