<div dir="ltr">Would  methods like:<div><br></div><div>static int <span class="" style="white-space:pre">vtkMath::</span>GetMean3 (vtkDataArray *array,  double mean[3])<br></div><div>static int <span class="" style="white-space:pre">vtkMath::</span>GetCovarianceMatrix (vtkDataArray *array,  double mean[3], double *covariance)<br>
</div><div><br></div><div>be a better way?</div><div><br></div><div>Goodwin</div><div><br></div><div>cf. for VTK devs see <a href="http://vtk.markmail.org/search/?q=#query:%20list%3Aorg.vtk.vtkusers+page:1+mid:ppj3wtbusf537spk+state:results">http://vtk.markmail.org/search/?q=#query:%20list%3Aorg.vtk.vtkusers+page:1+mid:ppj3wtbusf537spk+state:results</a></div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 13, 2014 at 3:53 PM, Goodwin Lawlor <span dir="ltr"><<a href="mailto:goodwin.lawlor.lists@gmail.com" target="_blank">goodwin.lawlor.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This wiki page should get you going: <a href="http://www.vtk.org/Wiki/VTK/Git/Develop" target="_blank">http://www.vtk.org/Wiki/VTK/Git/Develop</a><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Goodwin</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 13, 2014 at 2:40 PM, Oliver Weinheimer <span dir="ltr"><<a href="mailto:mail@oliwe.com" target="_blank">mail@oliwe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Goodwin,<br>
<br>
yes I also think that this change can improve accuracy also in other places<br>
in VTK.<br>
In my case, the mean calculation errors built up extremly, so that the<br>
calculated OBB was unusable.<br>
No, I'm not familiar with Gerrit, but I will have a look on it.<br>
Thanks for your reply and help.<br>
<br>
Oliver<br>
<br>
<br>
Goodwin Lawlor-2 wrote<br>
<div>> Hi Oliver,<br>
><br>
> That's a nice method - the mean is gradually accumulated, preserving the<br>
> accuracy of the floating point value. I'm sure there are other places in<br>
> VTK that would benefit from this code change...<br>
><br>
> If you're familiar with Gerrit, could you submit this change? I'll have a<br>
> poke around the code base to see if there are other similar mean<br>
> calculations.<br>
><br>
> Goodwin<br>
<br>
<br>
<br>
<br>
<br>
</div>--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Problems-with-ComputeOBB-wrong-OBB-computed-tp5728174p5728206.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problems-with-ComputeOBB-wrong-OBB-computed-tp5728174p5728206.html</a><br>


<div><div>Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>