Commit 40eb5a41 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

COMP: cannot convert proportions getter to pointer, return a const reference instead

parent 338e4778
......@@ -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) */
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment