Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to get the axes in Principal Component Analysis

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to get the axes in Principal Component Analysis


Chronological Thread 
  • From: Simon Giraudot <>
  • To:
  • Subject: Re: [cgal-discuss] How to get the axes in Principal Component Analysis
  • Date: Tue, 2 Aug 2016 07:44:38 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:uQwC7hGeihoM6aIjROIhTJ1GYnF86YWxBRYc798ds5kLTJ75osywAkXT6L1XgUPTWs2DsrQf2rKQ7P6rCDNIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWD14LoiavjpNX6WEZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7a3XoZVWNevRtSChXJ6w2yCozwtyz88OV8wiCHMcrqZb85XjGv8716RhbjlCAdJngy92SB2Z84t75SvB/0/083+IXTeozAbPc=

Le 25/07/2016 à 15:05, 刘 川 a écrit :

Hi!


I'm computing the bounding box with PCA in CGAL according to Principal Component Analysis.


I follow the example the web page offers. But I found it really ridiculous that I cannot get the three orientation axes of PCA (of course in 3D case).


Does anyone know how to get the axes?


Hello,


If you are fitting a plane with PCA, the axes information is embedded in this plane.


As you can see on the reference of CGAL::Plane_3, the class provides methods base1(), base2() and orthogonal_vector() that return the 3 vectors you are looking for.

http://doc.cgal.org/latest/Kernel_23/classCGAL_1_1Plane__3.html

-- 
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/


  • Re: [cgal-discuss] How to get the axes in Principal Component Analysis, Simon Giraudot, 08/02/2016

Archive powered by MHonArc 2.6.18.

Top of Page