diff --git a/include/lsgrmController.txx b/include/lsgrmController.txx index eafe1a193e89512fa219395a078af9845d662e9d..aabbae23b1b581b799f6d1dcc78bb29c78f69641 100644 --- a/include/lsgrmController.txx +++ b/include/lsgrmController.txx @@ -92,7 +92,8 @@ void Controller<TSegmenter>::RunSegmentation() // Run first partial segmentation boost::timer t; t.restart(); - long long unsigned int accumulatedMemory; + // temp. patch, maybe calculate real current memory after resuming graphs. + long long unsigned int accumulatedMemory = 2 * m_Memory; if (!m_Resuming) { accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>( @@ -108,8 +109,7 @@ void Controller<TSegmenter>::RunSegmentation() m_TileHeight, isFusion); } else { - // temp. patch, maybe calculate real current memory after resuming graphs. - accumulatedMemory = 2 * m_Memory; + isFusion = true; } #ifdef OTB_USE_MPI