diff --git a/Code/IO/otbStreamingImageFileWriter.txx b/Code/IO/otbStreamingImageFileWriter.txx index 0a9fd7947a75740ad6b9559aa42470f2b049de2d..e080450a16b04a23dd43a0cd8be24c8b6643f977 100644 --- a/Code/IO/otbStreamingImageFileWriter.txx +++ b/Code/IO/otbStreamingImageFileWriter.txx @@ -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(); diff --git a/Code/IO/otbStreamingImageVirtualWriter.txx b/Code/IO/otbStreamingImageVirtualWriter.txx index 519fbb8fa9e146c2116fa7610c168f9d58113493..9e24c6167d411065bc5bbf41bc82d95ce77b870b 100644 --- a/Code/IO/otbStreamingImageVirtualWriter.txx +++ b/Code/IO/otbStreamingImageVirtualWriter.txx @@ -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>