Commit 0c3ae789 authored by remicres's avatar remicres
Browse files

DOC: update TODOs and other comments

Showing with 2 additions and 10 deletions
+2 -10
...@@ -217,9 +217,7 @@ private: ...@@ -217,9 +217,7 @@ private:
void DoExecute() void DoExecute()
{ {
/* /*
To add: TODO: the output directory in case the global graph cannot fit in memory (lsgrmController.txx)
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) !
*/ */
// Input image // Input image
......
...@@ -47,7 +47,7 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -47,7 +47,7 @@ void Controller<TSegmenter>::RunSegmentation()
{ {
this->GetAutomaticConfiguration(); 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_NbTilesX = std::floor(m_InputImage->GetLargestPossibleRegion().GetSize()[0] / m_TileWidth);
m_NbTilesY = std::floor(m_InputImage->GetLargestPossibleRegion().GetSize()[1] / m_TileHeight); m_NbTilesY = std::floor(m_InputImage->GetLargestPossibleRegion().GetSize()[1] / m_TileHeight);
...@@ -99,14 +99,12 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -99,14 +99,12 @@ void Controller<TSegmenter>::RunSegmentation()
isFusion); isFusion);
#ifdef OTB_USE_MPI #ifdef OTB_USE_MPI
// Gathering useful variables
GatherUsefulVariables(accumulatedMemory, isFusion); GatherUsefulVariables(accumulatedMemory, isFusion);
#endif #endif
// Time monitoring // Time monitoring
ShowTime(t); ShowTime(t);
while(accumulatedMemory > m_Memory && isFusion) while(accumulatedMemory > m_Memory && isFusion)
{ {
isFusion = false; isFusion = false;
...@@ -122,11 +120,7 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -122,11 +120,7 @@ void Controller<TSegmenter>::RunSegmentation()
m_InputImage->GetNumberOfComponentsPerPixel(), m_InputImage->GetNumberOfComponentsPerPixel(),
isFusion); isFusion);
std::cout << "accumulatedMemory=" << accumulatedMemory << std::endl;
#ifdef OTB_USE_MPI #ifdef OTB_USE_MPI
// Gathering useful variables
GatherUsefulVariables(accumulatedMemory, isFusion); GatherUsefulVariables(accumulatedMemory, isFusion);
#endif #endif
......
Supports Markdown
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