Skip to content
Snippets Groups Projects
Commit 45cb4190 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

nomsg

parent 00b43e66
Branches
Tags
No related merge requests found
......@@ -20,6 +20,7 @@
#include "itkObject.h"
#include "itkObjectFactory.h"
#include "itkArray.h"
namespace otb
{
......@@ -52,19 +53,27 @@ class ITK_EXPORT MRFOptimizer : public itk::Object
void SetParameters( const ParametersType & parameters )
{
bool modified = false;
for( unsigned int i=0; i<m_NumberOfParameters; i++ )
{
if( parameters.Size() != m_NumberOfParameters )
{
itkExceptionMacro(<<"Invalid number of parameters");
}
m_Parameters = parameters;
this->Modified();
/*
bool modified = false;
for( unsigned int i=0; i<m_NumberOfParameters; i++ )
{
if (m_Parameters[i] != parameters[i])
{
m_Parameters[i] = parameters[i];
modified = true;
m_Parameters[i] = parameters[i];
modified = true;
}
}
if (modified)
{
}
if (modified)
{
this->Modified();
}
}
*/
}
virtual bool Compute(double deltaEnergy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment