From f641f1cd17d0d7e54e8bb23e98c32262b949ec5c Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 21 May 2006 07:00:01 +0000 Subject: [PATCH] Removed not working Equalized color (use funcs in stat.h) --- vcg/complex/trimesh/update/color.h | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/vcg/complex/trimesh/update/color.h b/vcg/complex/trimesh/update/color.h index 37750209..ec74ecc3 100644 --- a/vcg/complex/trimesh/update/color.h +++ b/vcg/complex/trimesh/update/color.h @@ -24,6 +24,10 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2006/03/01 10:29:55 ponchio +HACK: MaxVal(0.0f) not defined in vcg/math/base.h as it should be, +changing it to 1e36 (pretty close :P) + Revision 1.8 2005/12/19 16:47:42 cignoni Better comment and a parameter more for UpdateColor::VertexBorderFlag @@ -255,7 +259,7 @@ static void VertexQuality(UpdateMeshType &m) // step 1: find the range typename UpdateMeshType::VertexIterator vi; float minq=std::numeric_limits::max(), - maxq=std::numeric_limits::min(); + maxq=-std::numeric_limits::max(); for(vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD()) { @@ -265,27 +269,6 @@ static void VertexQuality(UpdateMeshType &m) VertexQuality(m,minq,maxq); } -static void VertexQualityHistEq(UpdateMeshType &m) -{ - // step 1: find the range - typename UpdateMeshType::VertexIterator vi; - float minq = 1e36; //MaxVal(0.0f), - float maxq = -1e36; //MaxVal(0.0f); - for(vi=m.vert.begin();vi!=m.vert.end();++vi) - if(!(*vi).IsD()) - { - minq=min(minq,(*vi).Q()); - maxq=max(maxq,(*vi).Q()); - } - // step 2; Get the distribution - // Hist H; - //H.SetRange(minq,maxq,1024); - //for(vi=m.vert.begin();vi!=m.vert.end();++vi) - // if(!(*vi).IsD()) H.Add((*vi).Q()); - - // VertexQuality(m,H.Percentile(.05f),H.Percentile(.95f)); -} - }; /*@}*/ }// end namespace