Page MenuHomePhabricator

Interpolation ... for all slices ... does not work in segmentation for
Closed, ResolvedPublic

Description

Segmentation module:

Segmenation was performed on a large 3D-dataset(768x768x398, 16bit unsigned, 460MB) consisting of almost 400 slices. Segmentation was drawn with the "Add" button on every 5th to 10th slice in the Coronal View. Then, interpolation button "for all slices (coronal blue window)" was pressed. Progress of interpolation process was visualized until abortion at around 73%. Segmentation on interpolated slices was still visualized as thin line instead of a thick line (in case of acceptance). Moreover, the saved segmentation file did contain only the manually segmented slices, whereas the interpolated segmentations were missing.

Is the number of slices / size of data set maybe too large for interpolation of segementation to missing slices?

Event Timeline

@Daniel, can you look into this?

I shortly looked into the code and found that errors during interpolation of all slices will probably catched in line 522 of

Modules/QmitkExt/QmitkSlicesInterpolator.cpp

A common error with interpolation is that the machine has not enough memory. During interpolation of all slices a second image volume is held in memory temporarily, in order to collect all the changes and then apply them in one step.

Markus, could you use some bugsquashing party to check what happens if memory is not sufficient and change the code so that a helpful message is issued?

Es ist in der Tat ein Speicherproblem. Auf einem 64-bit Rechner konnte ich die Segmentierung des Datensatzes erfolgreich interpolieren - aber nur mit der MITK 3M3 1.0.0 Version. In der 0.14-Version für 64-bit kann zwar die Segmentierung interpoliert werden aber NICHT abgespeichert!

Problem für mich gelöst. Vielen Dank für die schnelle Hilfe!

To test this you can limit the memory with ulimit on Mac OS and Linux. A nice error message should be shown if memory is too low.

Implemented a visual feedback if this error occurs.

[615a24]: Merge branch 'bug-5509-Interpolation4allSlices'

Merged commits:

2011-05-18 15:59:41 Ignaz Reicht [ae9ed8]
Added QMessageBox informing user about possible memory error during interpolation of segmentation

Merging "applicazion modules" component with "ExtApp plugins"