Page MenuHomePhabricator

CreateOutlinePolyData in mitkImageVtkMapper2D does not consider the plane bounds
Closed, ResolvedPublic

Description

The CreateOutlinePolyData in mitkImageVtkMapper2D creates texture information for binary images. Within the method the indices are not based on the bounds of the plane. They are initialized with value 0. Instead of using the bouns. This is the reason why vtk produces error outputs like 'pixel [...] not in memory [...]'.

Bug will be fixed with branch personal/schroedt/integrationbranch_bug-9318:
http://bugs.mitk.org/show_bug.cgi?id=9318

See also:
The changerequest of T9318
http://mitk.org/wiki/ChangeRequests/9318

Event Timeline

Has to be fixed separatly and thus needs an own changerequest.

No PolyData for pixels at the edge of the image is added.
There is no if clause for these cases.

The fix has to consider the edges.

[58c0e6]: Merge branch 'bug-10860-CreateOulinePolyData-consider-plane-bounds'

Merged commits:

2012-01-31 10:12:42 Tobias Schroeder [750faf]
some docu and code formatting


2012-01-31 09:17:04 Tobias Schroeder [6092c0]
indices in CreateOutlinePolyData based on plane bounds


2012-01-31 07:57:43 Tobias Schroeder [62891c]
update the WholeExtent of the slice to avoid vtk errors

Resolved:

  • indices initialized with minimum values of the extent
  • iterate until maximum y value is reached
  • consider the pixels located at the edge of the image by adding outlinepolydata to these pixels
  • update the wholeExtent of vtkImageReslice before actually reslicing