ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCropImageFilter.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 itkCropImageFilter_h
19#define itkCropImageFilter_h
20
22
23namespace itk
24{
43template <typename TInputImage, typename TOutputImage>
44class ITK_TEMPLATE_EXPORT CropImageFilter : public ExtractImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(CropImageFilter);
48
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(CropImageFilter);
60
64
68
73 using typename Superclass::InputImageSizeType;
75
79
81 itkSetMacro(UpperBoundaryCropSize, SizeType);
82 itkGetConstMacro(UpperBoundaryCropSize, SizeType);
83 itkSetMacro(LowerBoundaryCropSize, SizeType);
84 itkGetConstMacro(LowerBoundaryCropSize, SizeType);
86
87 void
89 {
92 }
93
96
97protected:
104
105 ~CropImageFilter() override = default;
106 void
107 PrintSelf(std::ostream & os, Indent indent) const override;
108
109 void
111
112 void
113 VerifyInputInformation() const override;
114
115private:
118};
119} // end namespace itk
120
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "itkCropImageFilter.hxx"
123#endif
124
125#endif
void SetBoundaryCropSize(const SizeType &s)
static constexpr unsigned int InputImageDimension
static constexpr unsigned int OutputImageDimension
virtual void SetLowerBoundaryCropSize(SizeType _arg)
void GenerateOutputInformation() override
ExtractImageFilter< TInputImage, TOutputImage > Superclass
InputImageSizeType SizeType
typename TInputImage::SizeType InputImageSizeType
~CropImageFilter() override=default
SmartPointer< const Self > ConstPointer
void VerifyInputInformation() const override
Verifies that the inputs meta-data is consistent and valid for continued execution of the pipeline,...
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetUpperBoundaryCropSize(SizeType _arg)
SmartPointer< Self > Pointer
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
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....