ITK  5.2.0
Insight Toolkit
itkMinimumMaximumImageCalculator.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  * http://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 itkMinimumMaximumImageCalculator_h
19 #define itkMinimumMaximumImageCalculator_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace itk
25 {
43 template <typename TInputImage>
44 class ITK_TEMPLATE_EXPORT MinimumMaximumImageCalculator : public Object
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(MinimumMaximumImageCalculator);
48 
51  using Superclass = Object;
54 
56  itkNewMacro(Self);
57 
60 
62  using ImageType = TInputImage;
63 
65  using ImagePointer = typename TInputImage::Pointer;
66 
68  using ImageConstPointer = typename TInputImage::ConstPointer;
69 
71  using PixelType = typename TInputImage::PixelType;
72 
75 
78 
80  itkSetConstObjectMacro(Image, ImageType);
81 
83  void
84  ComputeMinimum();
85 
87  void
88  ComputeMaximum();
89 
91  void
92  Compute();
93 
95  itkGetConstMacro(Minimum, PixelType);
96 
98  itkGetConstMacro(Maximum, PixelType);
99 
101  itkGetConstReferenceMacro(IndexOfMinimum, IndexType);
102 
104  itkGetConstReferenceMacro(IndexOfMaximum, IndexType);
105 
107  void
108  SetRegion(const RegionType & region);
109 
110 protected:
112  ~MinimumMaximumImageCalculator() override = default;
113  void
114  PrintSelf(std::ostream & os, Indent indent) const override;
115 
116 private:
120 
123 
126 };
127 } // end namespace itk
128 
129 #ifndef ITK_MANUAL_INSTANTIATION
130 # include "itkMinimumMaximumImageCalculator.hxx"
131 #endif
132 
133 #endif /* itkMinimumMaximumImageCalculator_h */
itkObjectFactory.h
itk::MinimumMaximumImageCalculator::m_IndexOfMaximum
IndexType m_IndexOfMaximum
Definition: itkMinimumMaximumImageCalculator.h:122
itk::MinimumMaximumImageCalculator::m_Minimum
PixelType m_Minimum
Definition: itkMinimumMaximumImageCalculator.h:117
itk::MinimumMaximumImageCalculator::m_RegionSetByUser
bool m_RegionSetByUser
Definition: itkMinimumMaximumImageCalculator.h:125
itk::MinimumMaximumImageCalculator
Computes the minimum and the maximum intensity values of an image.
Definition: itkMinimumMaximumImageCalculator.h:44
itk::MinimumMaximumImageCalculator::m_IndexOfMinimum
IndexType m_IndexOfMinimum
Definition: itkMinimumMaximumImageCalculator.h:121
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::MinimumMaximumImageCalculator::m_Image
ImageConstPointer m_Image
Definition: itkMinimumMaximumImageCalculator.h:119
itk::MinimumMaximumImageCalculator::m_Region
RegionType m_Region
Definition: itkMinimumMaximumImageCalculator.h:124
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::MinimumMaximumImageCalculator::ImageConstPointer
typename TInputImage::ConstPointer ImageConstPointer
Definition: itkMinimumMaximumImageCalculator.h:68
itk::MinimumMaximumImageCalculator::ImageType
TInputImage ImageType
Definition: itkMinimumMaximumImageCalculator.h:62
itkObject.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::MinimumMaximumImageCalculator::ImagePointer
typename TInputImage::Pointer ImagePointer
Definition: itkMinimumMaximumImageCalculator.h:65
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:62
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::MinimumMaximumImageCalculator::PixelType
typename TInputImage::PixelType PixelType
Definition: itkMinimumMaximumImageCalculator.h:71
itk::MinimumMaximumImageCalculator::m_Maximum
PixelType m_Maximum
Definition: itkMinimumMaximumImageCalculator.h:118
itk::MinimumMaximumImageCalculator::RegionType
typename TInputImage::RegionType RegionType
Definition: itkMinimumMaximumImageCalculator.h:77
itk::MinimumMaximumImageCalculator::IndexType
typename TInputImage::IndexType IndexType
Definition: itkMinimumMaximumImageCalculator.h:74