Page MenuHomePhabricator

Invalid OutsideValue for BoundingObjectCutter when using AutoOutsideValue
Closed, WontfixPublic

Description

The problem is that there is currently no way of retrieving the OutsideValue used by the BoudingObjectCutter when using SetAutoOutsideValue(true). The current code does something like

TOutputPixel outsideValue;
if(cutter->m_AutoOutsideValue)
{
  outsideValue = itk::NumericTraits<TOutputPixel>::min();
}
else
{
  outsideValue = (TOutputPixel) cutter->m_OutsideValue;
}

As you can see, the outside value used is computed from itk::NumericTraits<> but is never assigned to m_OutsideValue. Therefore, the method GetOutsideValue() doesn't return the correct value.

Event Timeline

I forgot to mention that we can't assign the computed outside value directly to m_OutsideValue because m_OutsideValue is stored as a mitk::ScalarType and TOutputPixel can be double which would result in an invalid value.

kislinsk claimed this task.
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.