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::Testing
24{
25
39template <typename TInputImage, typename TOutputImage = TInputImage>
40class ITK_TEMPLATE_EXPORT StretchIntensityImageFilter : public ImageSource<TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(StretchIntensityImageFilter);
44
50
51 using OutputPixelType = typename TOutputImage::PixelType;
52 using InputPixelType = typename TInputImage::PixelType;
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(StretchIntensityImageFilter);
60
61 itkSetMacro(OutputMinimum, OutputPixelType);
62 itkSetMacro(OutputMaximum, OutputPixelType);
63 itkGetConstReferenceMacro(OutputMinimum, OutputPixelType);
64 itkGetConstReferenceMacro(OutputMaximum, OutputPixelType);
65
69 itkGetConstReferenceMacro(Scale, RealType);
70 itkGetConstReferenceMacro(Shift, RealType);
71
74 itkGetConstReferenceMacro(InputMinimum, InputPixelType);
75 itkGetConstReferenceMacro(InputMaximum, InputPixelType);
76
79 virtual void
80 SetInput(const TInputImage * input);
81 const TInputImage *
82 GetInput() const;
83
85 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
86 itkConceptMacro(RealTypeMultiplyOperatorCheck, (Concept::MultiplyOperator<RealType>));
87 itkConceptMacro(RealTypeAdditiveOperatorsCheck, (Concept::AdditiveOperators<RealType>));
88
89protected:
91 ~StretchIntensityImageFilter() override = default;
92
94 void
96
98 void
99 PrintSelf(std::ostream & os, Indent indent) const override;
100
102 using InputImageRegionType = typename TInputImage::RegionType;
103
112 void
113 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
114
115private:
118
121
124};
125} // namespace itk::Testing
126
127#ifndef ITK_MANUAL_INSTANTIATION
128# include "itkTestingStretchIntensityImageFilter.hxx"
129#endif
130
131#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)