Commit 2a3cce86 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: fix TrainImagesClassifier when bm=0

parent e3d7abda
......@@ -362,8 +362,10 @@ void DoExecute() ITK_OVERRIDE
{
if (fmt > -1)
{
std::ostringstream oss;
oss << fmt;
GetInternalApplication("rates")->SetParameterString("strategy","constant", false);
GetInternalApplication("rates")->SetParameterInt("strategy.constant.nb",fmt);
GetInternalApplication("rates")->SetParameterString("strategy.constant.nb",oss.str());
}
else
{
......@@ -384,8 +386,10 @@ void DoExecute() ITK_OVERRIDE
{
if (fmv > -1)
{
std::ostringstream oss;
oss << fmv;
GetInternalApplication("rates")->SetParameterString("strategy","constant", false);
GetInternalApplication("rates")->SetParameterInt("strategy.constant.nb",fmv);
GetInternalApplication("rates")->SetParameterString("strategy.constant.nb",oss.str());
}
else
{
......
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