Hey there I’ve run into some problems with the way my MITK plugin behaves. What the plugin does, is asking the user for some parameters, choosing data sets and pass all the input to an ITK filter. This works for smaller (i’ll get back to what this means in a moment) images, but fails on larger ones. The ITK filter is a 3d graph cut segmentation filter developed previously. Important to know about graph cut segmentation is, that it allocates a big graph (1 vertex for each voxel + neighborhood connections) and runs some calculations on it. To give you some feeling for how large these graphs are, the previously mentioned “smaller” image is be 122x255x299voxel which will result in 1813MB for the graph.
The calculation via the plugin for the small image takes ~15 seconds. This is about the same as the standalone (wrapped with a CLI application) ITK filter. However, once the image size increases, the MITK plugin will slow down significantly compared to the standalone. At a graph size of 2048MB (174x279x199 vox), the MITK plugin takes up to 100 seconds while the standalone is at around 50seconds. This gap will increase exponentially. It somewhat resembles the time complexity of the ITK filter once the graph gets bigger than the available physical memory (thrashing). The calculations run in a QThread worker that i schedule via QThreadPool::globalInstance()->start(worker, QThread::HighPriority). I already tried removing the QThread overhead and starting the worker manually in the main plugin thread, this didn’t change anything (besides the GUI not updating, obviously…). Does anybody have any idea what could cause this? Does MITK limit the amount of available memory to a plugin? I’d love to provide a minimal working example, but because the whole thing is rather complex and i’m somewhat short on time, i currently cannot provide one. Thank you, Thomas ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
