Skip to Content.
Sympa Menu

cgal-discuss - Re:[cgal-discuss] A mistake in linear_least_squares_fitting_3?

Subject: CGAL users discussion list

List archive

Re:[cgal-discuss] A mistake in linear_least_squares_fitting_3?


Chronological Thread 
  • From: null <>
  • To: 杨成林 <>
  • Cc: cgal-discuss <>
  • Subject: Re:[cgal-discuss] A mistake in linear_least_squares_fitting_3?
  • Date: Sat, 14 Feb 2009 15:18:31 +0800 (CST)

Heihei


在2009-02-13,"杨成林" <> 写道:
Hello

I am new to CGAL.I use  linear_least_squares_fitting_3 to estimate
normals from point-cloud.But it can't give correct results
sometimes.After examining the source code,I think line 709-710 in
PCA_util.h(CGAL 3.4) may be incorrect.

eigen_values[2] is the smallest eigenvalue,so "eigen_values[2] ==
eigen_values[1]" means Degeneracy."eigen_values[0] == eigen_values[1]"
just means the points distribute isotropically in the plane,but the
fitting plane exists uniquely.

I change this two lines to "if(eigen_values[2] != eigen_values[1])".It
works well.
-- 
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




网易邮箱,中国第一大电子邮件服务商



Archive powered by MHonArc 2.6.16.

Top of Page