Commit e582938b5b61abf4349cff689605158f9626da1c

Authored by Pierre Lassalle
1 parent 1a475ee4
Exists in master

Bug rapporté par le laboratoire Tetis.

Confusion entre this->m_Param.m_ShapeWeight et this->m_Param.m_SpectralWeight dans le calcul du
coût de fusion pour le critère de Baatz & Schäpe.
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
Code/lsrmBaatzSegmenter.txx
... ... @@ -57,7 +57,7 @@ namespace lsrm
57 57 std = std::sqrt((square_mean - 2*mean*sum + a_sum * mean* mean) / a_sum);
58 58 spect_cost += (a_sum * std - a1 * n1->m_Std[b] - a2 * n2->m_Std[b]);
59 59 }
60   - spect_cost *= this->m_Param.m_ShapeWeight;
  60 + spect_cost *= this->m_Param.m_SpectralWeight;
61 61  
62 62 if(spect_cost < this->m_Threshold)
63 63 {
... ... @@ -79,7 +79,7 @@ namespace lsrm
79 79  
80 80 shape_cost = this->m_Param.m_ShapeWeight * compact_f + (1-this->m_Param.m_ShapeWeight) * smooth_f;
81 81  
82   - return (spect_cost + (1-this->m_Param.m_ShapeWeight)*shape_cost);
  82 + return (spect_cost + (1-this->m_Param.m_SpectralWeight)*shape_cost);
83 83 }
84 84 else
85 85 return spect_cost;
... ...