ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkNormalizeToConstantImageFilter.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 itkNormalizeToConstantImageFilter_h
19#define itkNormalizeToConstantImageFilter_h
20
22#include "itkConceptChecking.h"
23
24namespace itk
25{
26
54template <typename TInputImage, typename TOutputImage>
55class ITK_TEMPLATE_EXPORT NormalizeToConstantImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(NormalizeToConstantImageFilter);
59
62
64
67
69 using InputImageType = TInputImage;
70 using OutputImageType = TOutputImage;
71 using InputImagePointer = typename InputImageType::Pointer;
72 using InputImageConstPointer = typename InputImageType::ConstPointer;
73 using InputImagePixelType = typename InputImageType::PixelType;
74 using OutputImagePointer = typename OutputImageType::Pointer;
75 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
76 using OutputImagePixelType = typename OutputImageType::PixelType;
77 using RegionType = typename InputImageType::RegionType;
78 using IndexType = typename InputImageType::IndexType;
79 using SizeType = typename InputImageType::SizeType;
80
82
84 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
85 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
86 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
87
89 itkNewMacro(Self);
90
92 itkOverrideGetNameOfClassMacro(NormalizeToConstantImageFilter);
93
96 itkSetMacro(Constant, RealType);
97 itkGetConstMacro(Constant, RealType);
101
102protected:
105 void
106 PrintSelf(std::ostream & os, Indent indent) const override;
107
108 void
110
111 void
112 GenerateData() override;
113
114private:
116
117}; // end of class
118} // end namespace itk
119
120#ifndef ITK_MANUAL_INSTANTIATION
121# include "itkNormalizeToConstantImageFilter.hxx"
122#endif
123
124#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
~NormalizeToConstantImageFilter() override=default
typename InputImageType::RegionType RegionType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename NumericTraits< InputImagePixelType >::RealType RealType
void GenerateInputRequestedRegion() override
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....