Orfeo Toolbox  3.16
itkSampleClassifierWithMask.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkSampleClassifierWithMask.h,v $
5  Language: C++
6  Date: $Date: 2009-03-04 19:29:54 $
7  Version: $Revision: 1.6 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkSampleClassifierWithMask_h
18 #define __itkSampleClassifierWithMask_h
19 
20 #include <vector>
21 
22 #include "itkObject.h"
23 #include "itkExceptionObject.h"
24 #include "itkSubsample.h"
25 #include "itkMembershipSample.h"
26 #include "itkSampleClassifier.h"
27 
28 namespace itk {
29 namespace Statistics {
30 
59 template< class TSample, class TMaskSample >
61  public SampleClassifier< TSample >
62 {
63 public:
69 
72  itkNewMacro(Self);
73 
75  typedef typename Superclass::OutputType OutputType;
77  typedef typename Superclass::ClassLabelVectorType ClassLabelVectorType;
78 
80  typedef typename TSample::MeasurementType MeasurementType;
81  typedef typename TSample::MeasurementVectorType MeasurementVectorType;
82 
83 
85  typedef typename Superclass::MembershipFunctionPointerVector
87 
88  void SetMask( TMaskSample* mask );
89 
90  TMaskSample* GetMask()
91  { return m_Mask.GetPointer(); }
92 
93  void SetSelectedClassLabels( ClassLabelVectorType& labels)
94  { m_SelectedClassLabels = labels; }
95 
96  void SetOtherClassLabel( ClassLabelType label)
97  { m_OtherClassLabel = label; }
98 
99 protected:
102  void PrintSelf(std::ostream& os, Indent indent) const;
103 
105  void GenerateData();
106 
107 private:
109  typename TMaskSample::Pointer m_Mask;
112 }; // end of class
113 
114 } // end of namespace Statistics
115 } // end of namespace itk
116 
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
120 #endif
121 
122 #endif

Generated at Sun Feb 3 2013 00:03:45 for Orfeo Toolbox with doxygen 1.8.1.1