Chiara R and Xavier P offerd on mitk-users to modify the 2D segmentation tools (derived from mitk::SegTool2D) in a way that it would be possible to segment images in 2D slices which are not parallel to the main image axes.
Xavier already sent in a first piece of code, which I tried to integrate. Unfortunately, segmentation on rotated slices did not work as expected. Also, a couple of code issues arised:
- Why not make it two different "write a 2D slice back into a volume" filter? Looks reasonable to me, since there are two "extract a slice" filters.
- Do the return values of the helper methods in SegTool2D still make sense? Esp. DetermineAffectedImageSlice?
- How will undo be handled? It should be handled, since all other operations support undo.
- MITK style guide allows no tabs in code, should be replaced by two spaces
- Please try to develop or generate patches against the most recent SVN version from http://svn2.mitk.org/trunk/mitk . This makes it easier to merge your modifications.
A prototype can of course be implemented as a proof-of-concept. However I would like to maintain a reasonable and clean code structure, so we should get clear about the above issues before changing the implementation.
We can use this platform (Bugzilla) to discuss all issues. If neccessary we split this bug up into smaller dependent ones. Also we can add attachments (design sketches, patches, etc.).