ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkShiftScaleLabelMapFilter.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 itkShiftScaleLabelMapFilter_h
19#define itkShiftScaleLabelMapFilter_h
20
22
23namespace itk
24{
42template <typename TImage>
43class ITK_TEMPLATE_EXPORT ShiftScaleLabelMapFilter : public InPlaceLabelMapFilter<TImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(ShiftScaleLabelMapFilter);
47
53
55 using ImageType = TImage;
56 using ImagePointer = typename ImageType::Pointer;
57 using ImageConstPointer = typename ImageType::ConstPointer;
58 using PixelType = typename ImageType::PixelType;
59 using IndexType = typename ImageType::IndexType;
60 using LabelObjectType = typename ImageType::LabelObjectType;
61
63 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(ShiftScaleLabelMapFilter);
70
71 /*itkConceptMacro(InputEqualityComparableCheck,
72 (Concept::EqualityComparable<InputImagePixelType>));
73 itkConceptMacro(IntConvertibleToInputCheck,
74 (Concept::Convertible<int, InputImagePixelType>));
75 itkConceptMacro(InputOStreamWritableCheck,
76 (Concept::OStreamWritable<InputImagePixelType>));*/
77
78 itkSetMacro(Shift, double);
79 itkGetConstReferenceMacro(Shift, double);
80
81 itkSetMacro(Scale, double);
82 itkGetConstReferenceMacro(Scale, double);
83
84 itkSetMacro(ChangeBackgroundValue, bool);
85 itkGetConstMacro(ChangeBackgroundValue, bool);
86 itkBooleanMacro(ChangeBackgroundValue);
87
88protected:
90 ~ShiftScaleLabelMapFilter() override = default;
91
92 void
93 GenerateData() override;
94
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97
98 double m_Shift{};
99 double m_Scale{};
100
102}; // end of class
103} // end namespace itk
104
105#ifndef ITK_MANUAL_INSTANTIATION
106# include "itkShiftScaleLabelMapFilter.hxx"
107#endif
108
109#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
InPlaceLabelMapFilter< TImage > Superclass
typename ImageType::LabelObjectType LabelObjectType
typename ImageType::ConstPointer ImageConstPointer
~ShiftScaleLabelMapFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
typename ImageType::PixelType PixelType
typename ImageType::Pointer ImagePointer
typename ImageType::IndexType IndexType
static constexpr unsigned int ImageDimension
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....