Page MenuHomePhabricator

Migrate mitk::Contour to mitk::ContourModel
Closed, ResolvedPublic

Description

Currently Tools of segmentation plugin use mitk::Contour objects as a feedback visualization. After new contour framework was introduced with mitk::ContourModel we can get rid of mitk::Contour.
The idea is to keep the class to avoid compatibility issues as wrapper for mitk::ContourModel.

Event Timeline

New remote branch pushed: bug-15650-migrate-Contour-class-to-ContourModel

Switched to mitkContourModel for Tools using contour to visualize segmentation result. All classes that inherit from mitkFeedbackContourTool are using mitkContourModel.

I've left mitkContour as it is and just changed mitkContourUtils to use mitkContourModel as well as mitkContour. The API accepts now both of the classes but internally mitkContourModel is used. A mitkContour object is converted to mitkContourModel by copying the vertices.

Fixed by integration of UI redesign branch