ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkRegionOfInterestImageFilter.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 itkRegionOfInterestImageFilter_h
19#define itkRegionOfInterestImageFilter_h
20
22#include "itkSmartPointer.h"
23
24namespace itk
25{
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT RegionOfInterestImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(RegionOfInterestImageFilter);
58
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(RegionOfInterestImageFilter);
71
73 using RegionType = typename TInputImage::RegionType;
74 using IndexType = typename TInputImage::IndexType;
75 using SizeType = typename TInputImage::SizeType;
76
78 using OutputImagePixelType = typename TOutputImage::PixelType;
79 using InputImagePixelType = typename TInputImage::PixelType;
80
82 itkSetMacro(RegionOfInterest, RegionType);
83 itkGetConstMacro(RegionOfInterest, RegionType);
85
87 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
88 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
89
92
93protected:
95 ~RegionOfInterestImageFilter() override = default;
96 void
97 PrintSelf(std::ostream & os, Indent indent) const override;
98
99 void
101
102 void
104
112 void
114
124 void
125 DynamicThreadedGenerateData(const RegionType & outputRegionForThread) override;
126
127private:
129};
130} // end namespace itk
131
132#ifndef ITK_MANUAL_INSTANTIATION
133# include "itkRegionOfInterestImageFilter.hxx"
134#endif
135
136#endif
Base class for all data objects in ITK.
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
typename TInputImage::RegionType RegionType
~RegionOfInterestImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion() override
void GenerateOutputInformation() override
typename TOutputImage::PixelType OutputImagePixelType
void DynamicThreadedGenerateData(const RegionType &outputRegionForThread) override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename TInputImage::PixelType InputImagePixelType
typename TInputImage::IndexType IndexType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....