ITK  4.3.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< class TInputImage >
65 class ITK_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;
91  typedef typename TInputImage::IndexType ImageIndexType;
92  typedef typename TInputImage::SizeType ImageSizeType;
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(void);
125 
127  SlabRegionVectorType GetSlabRegionVector(void);
128 
129 protected:
131  virtual ~MRASlabIdentifier() {}
132  void PrintSelf(std::ostream & os, Indent indent) const;
133 
134 private:
135  MRASlabIdentifier(const Self &); //purposely not implemented
136  void operator=(const Self &); //purposely not implemented
137 
140 
143  unsigned int m_NumberOfSamples;
144 
147  double m_Tolerance;
149 };
150 } // end namespace itk
151 
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkMRASlabIdentifier.hxx"
154 #endif
155 
156 #endif /* __itkMRASlabIdentifier_h */
157