Commit 6880d809 authored by Emmanuel Christophe's avatar Emmanuel Christophe

ENH: minor fix in tile streaming

parent 53081125
...@@ -35,9 +35,9 @@ namespace otb ...@@ -35,9 +35,9 @@ namespace otb
* *
* This region splitter tries to adapt to the tiling scheme of the * This region splitter tries to adapt to the tiling scheme of the
* input image using the TileHint parameter. It aims at * input image using the TileHint parameter. It aims at
* synchronizing the streaming with the tiling scheme so as to avoid * synchronizing the streaming with the tiling scheme (in a JPEG
* reading the same tile multiple times in the standard pixel-based * 2000 situation for example) so as to avoid reading the same tile
* processing scheme. * multiple times in the standard pixel-based processing scheme.
* *
* If the requested number of splits is lower than the number of * If the requested number of splits is lower than the number of
* tiles in the image region, then the splitter will derive splits * tiles in the image region, then the splitter will derive splits
...@@ -48,7 +48,7 @@ namespace otb ...@@ -48,7 +48,7 @@ namespace otb
* changing to a new tile, ensuring the former tile will be only * changing to a new tile, ensuring the former tile will be only
* read once. * read once.
* *
* If the TileHing is empty, or is VImageDimension is not 2, the * If the TileHint is empty, or is VImageDimension is not 2, the
* splitter falls back to the behaviour of * splitter falls back to the behaviour of
* otb::ImageRegionSquareTileSplitter. * otb::ImageRegionSquareTileSplitter.
* *
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information. PURPOSE. See the above copyright notices for more information.
=========================================================================*/ =========================================================================*/
#ifndef __otbRAMDrivenAdaptativeStreamingManager_txx #ifndef __otbRAMDrivenAdaptativeStreamingManager_txx
#define __otbRAMDrivenAdaptativeStreamingManager_txx #define __otbRAMDrivenAdaptativeStreamingManager_txx
...@@ -60,7 +60,8 @@ RAMDrivenAdaptativeStreamingManager<TImage>::PrepareStreaming( itk::DataObject * ...@@ -60,7 +60,8 @@ RAMDrivenAdaptativeStreamingManager<TImage>::PrepareStreaming( itk::DataObject *
tileHint[0] = tileHintX; tileHint[0] = tileHintX;
tileHint[1] = tileHintY; tileHint[1] = tileHintY;
typename otb::ImageRegionAdaptativeSplitter<itkGetStaticConstMacro(ImageDimension)>::Pointer splitter = otb::ImageRegionAdaptativeSplitter<itkGetStaticConstMacro(ImageDimension)>::New(); typename otb::ImageRegionAdaptativeSplitter<itkGetStaticConstMacro(ImageDimension)>::Pointer splitter =
otb::ImageRegionAdaptativeSplitter<itkGetStaticConstMacro(ImageDimension)>::New();
splitter->SetTileHint(tileHint); splitter->SetTileHint(tileHint);
...@@ -74,4 +75,3 @@ RAMDrivenAdaptativeStreamingManager<TImage>::PrepareStreaming( itk::DataObject * ...@@ -74,4 +75,3 @@ RAMDrivenAdaptativeStreamingManager<TImage>::PrepareStreaming( itk::DataObject *
} // End namespace otb } // End namespace otb
#endif #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