Page MenuHomePhabricator

Performing statistics on a segmentation via right click doesn't work
Closed, ResolvedPublic

Description

For an existing segmentation you can calculate the statistic via a right click on the segmentation datanode. Then the statistics bundle should appear and automatically select the segmentation as mask. This is currently not working.

Sven you have made some changed to the statistics plugin. Have you an idea?

Event Timeline

Andi, I don't know that feature, but I guess this mechanism is not included in the image statistics bundle, at least I can't remember any code for that feature. Mathias, did you implement that feature in the image statistics bundle?

Probably you should have a look in the segementation bundle, from where this feature is initiated?

What is this feature all about? Image statistics calculation on binary images is quite senseless, is it for masking the original image?

Bests Sven

(In reply to comment #1)

Andi, I don't know that feature, but I guess this mechanism is not included
in the image statistics bundle, at least I can't remember any code for that
feature. Mathias, did you implement that feature in the image statistics
bundle?

No, I'm not aware of the possibility of opening the segmentation bundle by clicking on an image. The way I know of is that you first open the statistics view, and then select the data node which contains the segmentation mask. If this data node is a child node of an image node, the statistics are automatically calculated for the segmented part of the image.

The context menu entry is in fact added by the segmentation plugin.

segmentation plugin.xml

<extension point="org.mitk.gui.qt.datamanager.contextMenuActions">

...
<contextMenuAction nodeDescriptorName="ImageMask" label="Statistics" icon="" class="QmitkStatisticsAction" />
...

</extension>

And implemented in QmitkStatisticsAction.cpp.

Statistic is still working if you select the segmentation and the image with shift. Thus, the priority is rather low.

Updating target milestone to upcoming release

I discussed this issue with Andi and we agreed in removing the function to calculate the statistics from the DataManager context menu. The functionality is in future solely executable from the image statistics view by selecting both the source image and the segmentation from the DataManager. It is sufficient to offer one user interface for one function.

[083def]: Merge branch 'bug-13086-ImageStatisticsOnSegmentation'

Merged commits:

2013-05-29 16:28:26 Sven Mersmann [bad4cf]
Removed the QmitkStatisticsAction since it is not needed any longer.


2013-05-29 15:59:35 Sven Mersmann [24c66e]
Remove statistics action from DataManager context menu.

The issue is solved and merged to the master. Setting the bug status to resolved, fixed.