Une mise-à-jour est prévue le 9 juillet entre 13:00 et 14:00. Le service sera inaccessible ou instable pendant cette période. Merci de votre compréhension.

Commit bfb8d842 authored by remicres's avatar remicres

ENH: fallback to tiling=none when layout size is 1

parent c4ee96b1
...@@ -30,9 +30,6 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -30,9 +30,6 @@ void Controller<TSegmenter>::RunSegmentation()
if (m_TilingMode == LSGRM_TILING_AUTO || m_TilingMode == LSGRM_TILING_USER) if (m_TilingMode == LSGRM_TILING_AUTO || m_TilingMode == LSGRM_TILING_USER)
{ {
const unsigned int numberOfIterationsForPartialSegmentations = 3; // TODO: find a smart value
unsigned int numberOfIterationsRemaining = m_NumberOfIterations;
if(m_TilingMode == LSGRM_TILING_AUTO) if(m_TilingMode == LSGRM_TILING_AUTO)
{ {
this->GetAutomaticConfiguration(); this->GetAutomaticConfiguration();
...@@ -55,6 +52,16 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -55,6 +52,16 @@ void Controller<TSegmenter>::RunSegmentation()
m_Tiles = SplitOTBImage<ImageType>(m_InputImage, m_TileWidth, m_TileHeight, m_Margin, m_Tiles = SplitOTBImage<ImageType>(m_InputImage, m_TileWidth, m_TileHeight, m_Margin,
m_NbTilesX, m_NbTilesY, m_TemporaryFilesPrefix); m_NbTilesX, m_NbTilesY, m_TemporaryFilesPrefix);
// If there is only one tile, then fallback to LSGRM_TILING_NONE case
m_TilingMode = LSGRM_TILING_NONE;
}
if (m_TilingMode == LSGRM_TILING_AUTO || m_TilingMode == LSGRM_TILING_USER)
{
const unsigned int numberOfIterationsForPartialSegmentations = 3; // TODO: find a smart value
unsigned int numberOfIterationsRemaining = m_NumberOfIterations;
// Boolean indicating if there are remaining fusions // Boolean indicating if there are remaining fusions
bool isFusion = false; bool isFusion = false;
......
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