Page MenuHomePhabricator

FillContourInSlice is buggy for LiveWireTool
Closed, ResolvedPublic

Event Timeline

User schroedt has pushed new remote branch:

bug-17341-fill-contour-livewire-tool

Problem is related to center based contour output of ImageLiveWireFilter. The FillContourInSlice seem not working correctly with contours with point coordinates in pixel center.

Workaround behaves like ipSegmentation.

User schroedt has pushed new remote branch:

bug-17341-FillContourInSlice-fix

The problem seems to be fixed taking commented out line "pol2stenc->SetTolerance(0);" in FillContourInSlice back in.
This line is also present in the fill polydata contour example from VTK's homepage.

User schroedt has pushed new remote branch:

bug-17341-fix-LW-tool

I've adapted the user feedback contour to be corner based thus the shift of the contour when filled in the slice is removed. It is not the best solution since some pixels marked by the algorithm are not taken into account but this way the user isn't confused about what is happening when confirm segmentation button is pushed.

[8b0cc6]: Merge branch 'bug-17341-fix-LW-tool'

Merged commits:

2014-03-26 16:08:21 Tobias Schroeder [b985ef]
Alternate user feedback contour to be corner based


2014-03-26 16:07:37 Tobias Schroeder [a6a562]
Use setTolerance of vtkPolyDataToImageStencil