Skip to content
Snippets Groups Projects
Commit 89f3aff2 authored by Julien Michel's avatar Julien Michel
Browse files

Initialisation de valeurs manquante

parent 96a83ac6
Branches
Tags
No related merge requests found
......@@ -84,6 +84,13 @@ SVMModel<TInputPixel, TLabel>
otbMsgDevMacro( << "SVMModel::AllocateProblem - x done" );
delete [] m_XSpace;
m_XSpace = new struct svm_node[elements];
for(unsigned int i = 0;i<elements;++i)
{
m_XSpace[i].value = 0;
m_XSpace[i].index = -1;
}
//free(m_XSpace);
//m_XSpace = Malloc(struct svm_node,elements);
//otbMsgDevMacro( << "SVMModel::AllocateProblem - m_XSpace done" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment