ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTestingStretchIntensityImageFilter.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 itkTestingStretchIntensityImageFilter_h
19#define itkTestingStretchIntensityImageFilter_h
20
22
23namespace itk
24{
25namespace Testing
26{
27
41template <typename TInputImage, typename TOutputImage = TInputImage>
42class ITK_TEMPLATE_EXPORT StretchIntensityImageFilter : public ImageSource<TOutputImage>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(StretchIntensityImageFilter);
46
52
53 using OutputPixelType = typename TOutputImage::PixelType;
54 using InputPixelType = typename TInputImage::PixelType;
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(StretchIntensityImageFilter);
62
63 itkSetMacro(OutputMinimum, OutputPixelType);
64 itkSetMacro(OutputMaximum, OutputPixelType);
65 itkGetConstReferenceMacro(OutputMinimum, OutputPixelType);
66 itkGetConstReferenceMacro(OutputMaximum, OutputPixelType);
67
71 itkGetConstReferenceMacro(Scale, RealType);
72 itkGetConstReferenceMacro(Shift, RealType);
74
77 itkGetConstReferenceMacro(InputMinimum, InputPixelType);
78 itkGetConstReferenceMacro(InputMaximum, InputPixelType);
80
83 virtual void
84 SetInput(const TInputImage * input);
85 const TInputImage *
86 GetInput() const;
88
90 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
91 itkConceptMacro(RealTypeMultiplyOperatorCheck, (Concept::MultiplyOperator<RealType>));
92 itkConceptMacro(RealTypeAdditiveOperatorsCheck, (Concept::AdditiveOperators<RealType>));
93
94protected:
96 ~StretchIntensityImageFilter() override = default;
97
99 void
101
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
107 using InputImageRegionType = typename TInputImage::RegionType;
108
117 void
118 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
119
120private:
123
126
129};
130} // end namespace Testing
131} // end namespace itk
132
133#ifndef ITK_MANUAL_INSTANTIATION
134# include "itkTestingStretchIntensityImageFilter.hxx"
135#endif
136
137#endif
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
virtual void SetInput(const TInputImage *input)
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::RegionType OutputImageRegionType
const TInputImage * GetInput() const
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
typename NumericTraits< InputPixelType >::RealType RealType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....