Commit 0c3ae789 authored by remicres's avatar remicres

DOC: update TODOs and other comments

parent 3d7065ae
......@@ -217,9 +217,7 @@ private:
void DoExecute()
{
/*
To add:
the output directory in case the global graph cannot fit in memory
TODO: It seems to be a cast-related bug when changing the output pixel type (e.g. uint16) !
TODO: the output directory in case the global graph cannot fit in memory (lsgrmController.txx)
*/
// Input image
......
......@@ -47,7 +47,7 @@ void Controller<TSegmenter>::RunSegmentation()
{
this->GetAutomaticConfiguration();
}
else if (m_TilingMode == LSGRM_TILING_USER)
else // m_TilingMode is LSGRM_TILING_USER
{
m_NbTilesX = std::floor(m_InputImage->GetLargestPossibleRegion().GetSize()[0] / m_TileWidth);
m_NbTilesY = std::floor(m_InputImage->GetLargestPossibleRegion().GetSize()[1] / m_TileHeight);
......@@ -99,14 +99,12 @@ void Controller<TSegmenter>::RunSegmentation()
isFusion);
#ifdef OTB_USE_MPI
// Gathering useful variables
GatherUsefulVariables(accumulatedMemory, isFusion);
#endif
// Time monitoring
ShowTime(t);
while(accumulatedMemory > m_Memory && isFusion)
{
isFusion = false;
......@@ -122,11 +120,7 @@ void Controller<TSegmenter>::RunSegmentation()
m_InputImage->GetNumberOfComponentsPerPixel(),
isFusion);
std::cout << "accumulatedMemory=" << accumulatedMemory << std::endl;
#ifdef OTB_USE_MPI
// Gathering useful variables
GatherUsefulVariables(accumulatedMemory, isFusion);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment