Page MenuHomePhabricator

Mask image option in segmentation postprocessing context menu
Closed, ResolvedPublic

Description

Often it is usefull to mask an image with a given segmentation. To be more specific often you just want to see the part of an image which was just segmented. This is helpful e.g. for volumevisualisation. This functionality should be offered via the context menu

Event Timeline

I just pushed a branch: bug-12480-MaskImageOptionInContextMenu

So far everything work fine. The actual behavior is:

  • Rightclick on Greyvalue image -> "Mask Image" Option is shown in the context menu.
  • If no binary mask is available then "No binary mask available" is displayed in the submenu. Otherwise all available binary masks are displayed which have the same geometry as the original image
  • Choosing a binary mask creates a new node with the masked image.

Marco can you take a look at it? The changes I had to make weren't really trivial since all QActions of the context menu were created via the berryExtensionPoints.
I had to make some adaptions to the Datamanager and the NodeDescriptor/~Manager so that QMenus can be handled and are displayed in the context menu.

Updating target milestone to upcoming release

This bug could not be fixed for release 2013-06. Setting target milestone to next release

With the segmentation ui redesign all context menu entries where moved into separate views. There is also a mask image option, see T15068