ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkMRASlabIdentifier.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
64 template< typename TInputImage >
65 class ITK_TEMPLATE_EXPORT MRASlabIdentifier:public Object
66 {
67 public:
70  typedef Object Superclass;
73 
75  itkTypeMacro(MRASlabIdentifier, Object);
76 
78  itkNewMacro(Self);
79 
81  typedef TInputImage ImageType;
82 
84  typedef typename TInputImage::Pointer ImagePointer;
85 
87  typedef typename TInputImage::ConstPointer ImageConstPointer;
88 
90  typedef typename TInputImage::PixelType ImagePixelType;
93  typedef typename TInputImage::RegionType ImageRegionType;
94  typedef std::vector< ImageRegionType > SlabRegionVectorType;
95 
97  itkSetConstObjectMacro(Image, ImageType);
98  itkGetConstObjectMacro(Image, ImageType);
100 
102  itkSetMacro(NumberOfSamples, unsigned int);
103  itkGetConstReferenceMacro(NumberOfSamples, unsigned int);
105 
107  itkSetMacro(BackgroundMinimumThreshold, ImagePixelType);
108  itkGetConstReferenceMacro(BackgroundMinimumThreshold, ImagePixelType);
110 
112  itkSetMacro(Tolerance, double);
113  itkGetConstReferenceMacro(Tolerance, double);
115 
118  itkSetMacro(SlicingDirection, int);
119  itkGetConstReferenceMacro(SlicingDirection, int);
121 
124  void GenerateSlabRegions();
125 
127  SlabRegionVectorType GetSlabRegionVector();
128 
129 protected:
131  virtual ~MRASlabIdentifier() ITK_OVERRIDE {}
132  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
133 
134 private:
135  ITK_DISALLOW_COPY_AND_ASSIGN(MRASlabIdentifier);
136 
139 
142  unsigned int m_NumberOfSamples;
143 
146  double m_Tolerance;
148 };
149 } // end namespace itk
150 
151 #ifndef ITK_MANUAL_INSTANTIATION
152 #include "itkMRASlabIdentifier.hxx"
153 #endif
154 
155 #endif /* itkMRASlabIdentifier_h */
SmartPointer< const Self > ConstPointer
TInputImage::PixelType ImagePixelType
Light weight base class for most itk classes.
TInputImage::Pointer ImagePointer
SlabRegionVectorType m_Slabs
virtual ~MRASlabIdentifier() override
std::vector< ImageRegionType > SlabRegionVectorType
ImagePixelType m_BackgroundMinimumThreshold
TInputImage::ConstPointer ImageConstPointer
identifies slab in MR images comparing minimum intensity averages
TInputImage::RegionType ImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
TInputImage::SizeType ImageSizeType
Base class for most ITK classes.
Definition: itkObject.h:59
Templated n-dimensional image class.
Definition: itkImage.h:75
TInputImage::IndexType ImageIndexType
SmartPointer< Self > Pointer