Page MenuHomePhabricator

Allow image masking with PlanarFigures even if partially out of bounds
Closed, DuplicatePublic

Description

Currently, when a (closed) PLanarFigure (e.g. circle) lies partially outside of the bounds of an image, it cannot be used for masking the image in mitk::ImageStatisticsCalculator (see T2674).

This is due to a bug in VTK (#8269 in Mantis bug-tracker) which prevents the vtkPolyDataToImageStencil filters to be used for out-of-bounds polygons:

http://www.kwwidgets.org/Bug/bug_view_page.php?bug_id=8269&history=1

As soon as the VTK bug is fixed, the current workaround check for out-of-bounds in mitk::ImageStatisticsCalculator::InternalCalculateMaskFromPlanarFigure() can be removed.

Event Timeline

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

floca closed this task as a duplicate of Restricted Maniphest Task.Mar 6 2020, 10:03 AM