Orfeo Toolbox  4.0
otbRAMDrivenTiledStreamingManager.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17  =========================================================================*/
18 #ifndef __otbRAMDrivenTiledStreamingManager_txx
19 #define __otbRAMDrivenTiledStreamingManager_txx
20 
22 #include "otbMacro.h"
24 
25 namespace otb
26 {
27 
28 template <class TImage>
30  : m_AvailableRAMInMB(0),
31  m_Bias(1.0)
32 {
33 }
34 
35 template <class TImage>
37 {
38 }
39 
40 template <class TImage>
41 void
43 {
44  unsigned long nbDivisions =
45  this->EstimateOptimalNumberOfDivisions(input, region, m_AvailableRAMInMB, m_Bias);
46 
48  this->m_ComputedNumberOfSplits = this->m_Splitter->GetNumberOfSplits(region, nbDivisions);
49  otbMsgDevMacro(<< "Number of split : " << this->m_ComputedNumberOfSplits)
50  this->m_Region = region;
51 }
52 
53 } // End namespace otb
54 
55 #endif
56 

Generated at Sat Mar 8 2014 16:14:43 for Orfeo Toolbox with doxygen 1.8.3.1