[vtkusers] Problems with ComputeOBB - wrong OBB computed

Oliver Weinheimer mail at oliwe.com
Thu Aug 14 04:37:57 EDT 2014


Yes, it would be nice to have it in vtkMath.

Variance calculation can easily be integrated in this calculation.

static int vtkMath::GetMean(vtkDataArray *array, int dim, double* mean,
double* variance) 

So variance can additionally calculated if variance!=0.

I will have a look on Gerrit tomorrow .

Oliver


Goodwin Lawlor-2 wrote
> Would  methods like:
> 
> static int vtkMath::GetMean3 (vtkDataArray *array,  double mean[3])
> static int vtkMath::GetCovarianceMatrix (vtkDataArray *array,  double
> mean[3], double *covariance)
> 
> be a better way?
> 
> Goodwin





--
View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-ComputeOBB-wrong-OBB-computed-tp5728174p5728218.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list