From be9b53223d47ef8323cb79668ea9c36d3f82a27a Mon Sep 17 00:00:00 2001 From: Pierre Lassalle <lassallep@cesbio.cnes.fr> Date: Sat, 16 Jul 2016 14:12:26 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20of=20a=20bug=20when=20computing=20?= =?UTF-8?q?the=20merging=20cost=20with=20the=20Baatz=20&=20Sch=C3=A4pe=20c?= =?UTF-8?q?riterion.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/grmBaatzSegmenter.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/grmBaatzSegmenter.txx b/include/grmBaatzSegmenter.txx index 1d90443..2e25c7c 100644 --- a/include/grmBaatzSegmenter.txx +++ b/include/grmBaatzSegmenter.txx @@ -69,7 +69,7 @@ namespace grm 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) { @@ -91,7 +91,7 @@ namespace grm 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; -- GitLab