Skip to content
Snippets Groups Projects
Commit 8450523d authored by Julien Malik's avatar Julien Malik
Browse files

BUG: initialize member attributes

parent ba25f0a4
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,16 @@ namespace otb
template <class TInputImage>
StreamingImageFileWriter<TInputImage>
::StreamingImageFileWriter()
: m_WriteGeomFile(false)
: m_NumberOfDivisions(0),
m_CurrentDivision(0),
m_DivisionProgress(0.0),
m_UserSpecifiedImageIO(true),
m_UserSpecifiedIORegion(false),
m_FactorySpecifiedImageIO(false),
m_UseCompression(false),
m_UseInputMetaDataDictionary(false),
m_WriteGeomFile(false)
{
m_UserSpecifiedIORegion = true;
m_FactorySpecifiedImageIO = false;
// By default, we use tiled streaming, with automatic tile size
// We don't set any parameter, so the memory size is retrieved from the OTB configuration options
this->SetAutomaticTiledStreaming();
......
......@@ -36,10 +36,13 @@ namespace otb
template <class TInputImage>
StreamingImageVirtualWriter<TInputImage>
::StreamingImageVirtualWriter()
: m_NumberOfDivisions(0),
m_CurrentDivision(0),
m_DivisionProgress(0.0)
{
// By default, we use tiled streaming, with automatic tile size
// We don't set any parameter, so the memory size is retrieved rom the OTB configuration options
m_StreamingManager = otb::RAMDrivenTiledStreamingManager<TInputImage>::New();
// We don't set any parameter, so the memory size is retrieved from the OTB configuration options
this->SetAutomaticTiledStreaming();
}
template <class TInputImage>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment