diff --git a/Code/lsrmBaatzSegmenter.txx b/Code/lsrmBaatzSegmenter.txx index f751ccd1208a6b7cf24185712bf33a08b629f3ac..abc0273b14c2737509515bf07190535f087ac1fe 100644 --- a/Code/lsrmBaatzSegmenter.txx +++ b/Code/lsrmBaatzSegmenter.txx @@ -57,7 +57,7 @@ namespace lsrm std = std::sqrt((square_mean - 2*mean*sum + a_sum * mean* mean) / a_sum); spect_cost += (a_sum * std - a1 * n1->m_Std[b] - a2 * n2->m_Std[b]); } - spect_cost *= this->m_Param.m_ShapeWeight; + spect_cost *= this->m_Param.m_SpectralWeight; if(spect_cost < this->m_Threshold) { @@ -79,7 +79,7 @@ namespace lsrm shape_cost = this->m_Param.m_ShapeWeight * compact_f + (1-this->m_Param.m_ShapeWeight) * smooth_f; - return (spect_cost + (1-this->m_Param.m_ShapeWeight)*shape_cost); + return (spect_cost + (1-this->m_Param.m_SpectralWeight)*shape_cost); } else return spect_cost;