Commit 2958d96e authored by Julien Michel's avatar Julien Michel

BUG: Fixing bug introduced during massive warnings fixes

parent f47211a0
......@@ -208,7 +208,7 @@ private:
int m_Neighborhood;
TerminationCodeType m_TerminationCode;
ComponentVectorType m_ComponentVector;
mutable ComponentVectorType m_ComponentVector;
ProportionVectorType m_InitialProportions;
ProportionVectorType m_Proportions;
ProbaByClassVectorType m_Proba;
......
......@@ -312,7 +312,8 @@ SEMClassifier<TInputImage,TOutputImage>
if (m_ComponentDeclared == 1)
otbMsgDebugMacro(
<< "Previous component declarations will be lost since called before SetNumberOfClasses");
m_ComponentVector.clear();
m_ComponentVector.resize(this->GetNumberOfClasses());
m_ComponentDeclared = 0;
}
......
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