diff --git a/Modules/Learning/LearningBase/include/otbSEMClassifier.h b/Modules/Learning/LearningBase/include/otbSEMClassifier.h index 0a0af75660bb338da062a85175b7094f97a83f4d..479e5829ada559280b31955be4f1c722bcc6f5f6 100644 --- a/Modules/Learning/LearningBase/include/otbSEMClassifier.h +++ b/Modules/Learning/LearningBase/include/otbSEMClassifier.h @@ -125,11 +125,11 @@ public: * vector should be same as the number of component (or classes). * Choose between SetInitialProportions, SetClassLabels or * SetNumberOfComponents */ - void SetInitialProportions(ProportionVectorType& propotion); - ProportionVectorType* GetInitialProportions(); + void SetInitialProportions(ProportionVectorType& proportions); + itkGetConstReferenceMacro(InitialProportions,ProportionVectorType); /** Gets the result proportion values */ - ProportionVectorType* GetProportions(); + itkGetConstReferenceMacro(Proportions,ProportionVectorType); /** Set/Gets the initial segmentation. the size of the vector should be * the same as the number of samples (length of MeasurementVector) */ diff --git a/Modules/Learning/LearningBase/include/otbSEMClassifier.hxx b/Modules/Learning/LearningBase/include/otbSEMClassifier.hxx index dc687494181a6ccf177788633ff9da7a946dac80..554049cd32e01ea72a4f4d2336c68e8a98bf0d5f 100644 --- a/Modules/Learning/LearningBase/include/otbSEMClassifier.hxx +++ b/Modules/Learning/LearningBase/include/otbSEMClassifier.hxx @@ -99,14 +99,6 @@ SEMClassifier<TInputImage, TOutputImage> m_ExternalLabels = 0; } -template<class TInputImage, class TOutputImage> -typename SEMClassifier<TInputImage, TOutputImage>::ProportionVectorType* -SEMClassifier<TInputImage, TOutputImage> -::GetInitialProportions() -{ - return m_InitialProportions; -} - template<class TInputImage, class TOutputImage> void SEMClassifier<TInputImage, TOutputImage> @@ -228,14 +220,6 @@ SEMClassifier<TInputImage, TOutputImage> return m_ClassLabels; } -template<class TInputImage, class TOutputImage> -typename SEMClassifier<TInputImage, TOutputImage>::ProportionVectorType* -SEMClassifier<TInputImage, TOutputImage> -::GetProportions() -{ - return &m_Proportions; -} - template<class TInputImage, class TOutputImage> void SEMClassifier<TInputImage, TOutputImage>