[vtk-developers] [vtkusers] Problems with ComputeOBB - wrong OBB computed

Goodwin Lawlor goodwin.lawlor.lists at gmail.com
Wed Aug 13 12:08:14 EDT 2014


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

cf. for VTK devs see
http://vtk.markmail.org/search/?q=#query:%20list%3Aorg.vtk.vtkusers+page:1+mid:ppj3wtbusf537spk+state:results




On Wed, Aug 13, 2014 at 3:53 PM, Goodwin Lawlor <
goodwin.lawlor.lists at gmail.com> wrote:

> This wiki page should get you going:
> http://www.vtk.org/Wiki/VTK/Git/Develop
>
> Goodwin
>
>
> On Wed, Aug 13, 2014 at 2:40 PM, Oliver Weinheimer <mail at oliwe.com> wrote:
>
>> Hi Goodwin,
>>
>> yes I also think that this change can improve accuracy also in other
>> places
>> in VTK.
>> In my case, the mean calculation errors built up extremly, so that the
>> calculated OBB was unusable.
>> No, I'm not familiar with Gerrit, but I will have a look on it.
>> Thanks for your reply and help.
>>
>> Oliver
>>
>>
>> Goodwin Lawlor-2 wrote
>> > Hi Oliver,
>> >
>> > That's a nice method - the mean is gradually accumulated, preserving the
>> > accuracy of the floating point value. I'm sure there are other places in
>> > VTK that would benefit from this code change...
>> >
>> > If you're familiar with Gerrit, could you submit this change? I'll have
>> a
>> > poke around the code base to see if there are other similar mean
>> > calculations.
>> >
>> > Goodwin
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Problems-with-ComputeOBB-wrong-OBB-computed-tp5728174p5728206.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140813/ff2e5571/attachment-0001.html>


More information about the vtk-developers mailing list