ITK  5.2.0
Insight Toolkit
itkMRASlabIdentifier.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 itkMRASlabIdentifier_h
19 #define itkMRASlabIdentifier_h
20 
21 #include "itkObject.h"
22 #include "itkImage.h"
23 #include <vector>
24 
25 namespace itk
26 {
65 template <typename TInputImage>
66 class ITK_TEMPLATE_EXPORT MRASlabIdentifier : public Object
67 {
68 public:
69  ITK_DISALLOW_COPY_AND_MOVE(MRASlabIdentifier);
70 
73  using Superclass = Object;
76 
78  itkTypeMacro(MRASlabIdentifier, Object);
79 
81  itkNewMacro(Self);
82 
84  using ImageType = TInputImage;
85 
87  using ImagePointer = typename TInputImage::Pointer;
88 
90  using ImageConstPointer = typename TInputImage::ConstPointer;
91 
93  using ImagePixelType = typename TInputImage::PixelType;
97  using SlabRegionVectorType = std::vector<ImageRegionType>;
98 
100  itkSetConstObjectMacro(Image, ImageType);
101  itkGetConstObjectMacro(Image, ImageType);
103 
105  itkSetMacro(NumberOfSamples, unsigned int);
106  itkGetConstReferenceMacro(NumberOfSamples, unsigned int);
108 
110  itkSetMacro(BackgroundMinimumThreshold, ImagePixelType);
111  itkGetConstReferenceMacro(BackgroundMinimumThreshold, ImagePixelType);
113 
115  itkSetMacro(Tolerance, double);
116  itkGetConstReferenceMacro(Tolerance, double);
118 
121  itkSetMacro(SlicingDirection, int);
122  itkGetConstReferenceMacro(SlicingDirection, int);
124 
127  void
128  GenerateSlabRegions();
129 
132  GetSlabRegionVector();
133 
134 protected:
136  ~MRASlabIdentifier() override = default;
137  void
138  PrintSelf(std::ostream & os, Indent indent) const override;
139 
140 private:
143 
146  unsigned int m_NumberOfSamples;
147 
150  double m_Tolerance;
152 };
153 } // end namespace itk
154 
155 #ifndef ITK_MANUAL_INSTANTIATION
156 # include "itkMRASlabIdentifier.hxx"
157 #endif
158 
159 #endif /* itkMRASlabIdentifier_h */
itk::MRASlabIdentifier::SlabRegionVectorType
std::vector< ImageRegionType > SlabRegionVectorType
Definition: itkMRASlabIdentifier.h:97
itk::MRASlabIdentifier::m_Tolerance
double m_Tolerance
Definition: itkMRASlabIdentifier.h:150
itk::MRASlabIdentifier::m_Image
ImageConstPointer m_Image
Definition: itkMRASlabIdentifier.h:142
itk::MRASlabIdentifier::ImagePointer
typename TInputImage::Pointer ImagePointer
Definition: itkMRASlabIdentifier.h:87
itk::MRASlabIdentifier::ImagePixelType
typename TInputImage::PixelType ImagePixelType
Definition: itkMRASlabIdentifier.h:93
itk::MRASlabIdentifier::m_BackgroundMinimumThreshold
ImagePixelType m_BackgroundMinimumThreshold
Definition: itkMRASlabIdentifier.h:149
itk::MRASlabIdentifier::m_Slabs
SlabRegionVectorType m_Slabs
Definition: itkMRASlabIdentifier.h:151
itk::MRASlabIdentifier
identifies slab in MR images comparing minimum intensity averages
Definition: itkMRASlabIdentifier.h:66
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itkImage.h
itk::MRASlabIdentifier::ImageRegionType
typename TInputImage::RegionType ImageRegionType
Definition: itkMRASlabIdentifier.h:96
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::MRASlabIdentifier::ImageType
TInputImage ImageType
Definition: itkMRASlabIdentifier.h:84
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::MRASlabIdentifier::m_SlicingDirection
int m_SlicingDirection
Definition: itkMRASlabIdentifier.h:148
itk::MRASlabIdentifier::ImageSizeType
typename TInputImage::SizeType ImageSizeType
Definition: itkMRASlabIdentifier.h:95
itkObject.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::MRASlabIdentifier::m_NumberOfSamples
unsigned int m_NumberOfSamples
Definition: itkMRASlabIdentifier.h:146
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:62
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:86
itk::MRASlabIdentifier::ImageIndexType
typename TInputImage::IndexType ImageIndexType
Definition: itkMRASlabIdentifier.h:94
itk::MRASlabIdentifier::ImageConstPointer
typename TInputImage::ConstPointer ImageConstPointer
Definition: itkMRASlabIdentifier.h:90