- load 4D image
- create 4D segmentation with plugin
- open image statistics plugin and select image and segmentation
It only works under the condition that each timestep is non-empty, i.e. has a masked pixel.
Otherwise, MITK crashes.
It only works under the condition that each timestep is non-empty, i.e. has a masked pixel.
Otherwise, MITK crashes.
Status | Assigned | Task | ||
---|---|---|---|---|
Restricted Maniphest Task | ||||
Restricted Maniphest Task | ||||
Restricted Maniphest Task | ||||
Restricted Maniphest Task | ||||
Restricted Maniphest Task | ||||
Restricted Maniphest Task | ||||
Resolved | • kausch | T26029 [image statistics plugin] 4D image + 4D segmentation as mask does not work |
Statistics are calculated for those time steps where a mask is provided, for the others not. When the view asks for the statistics an exception is thrown if the statistics don't exist.
see: QmitkImageStatisticsCalculator, line 209ff (Histogram visualization)
We put a try catch around that . There seems to be another exception thrown when willing the table view. The statistics table is not filled:
Solution: GetStatisticsForTimeStep method now returns an empty StatisticsObject if no mask is provided for this time step. Thus, histogram and table are empty for those time steps.
Discussion: 1. 4D image + 3D segmentation
@hentsch Is the one time step segmentation applied to all time steps? What is the expected behavior?
I have concerns with the latest commit. See comments there. You can come by and ask if you have any questions.
@hentsch Is the one time step segmentation applied to all time steps? What is the expected behavior?
Yes. One segmentation timestep to rule all image timesteps! But the last time I tested it, it worked fine.
Yeah, we did... to be honest, I don't know if it is merged yet. @kausch can you please check this?
@kausch You have not closed the task ;). Was this task done in its own branch or as a "side" task in an other branch?