21 #ifndef otbNumberOfLinesStrippedStreamingManager_hxx
22 #define otbNumberOfLinesStrippedStreamingManager_hxx
30 template <
class TImage>
35 template <
class TImage>
40 template <
class TImage>
43 otbMsgDevMacro(<<
"Activating STRIPPED_SET_NUMBEROFLINES streaming mode")
if (m_NumberOfLinesPerStrip < 1)
45 itkWarningMacro(<<
"DesiredNumberOfLines set to 0 : streaming disabled")
49 unsigned long numberLinesOfRegion = region.GetSize()[1];
50 unsigned long nbSplit;
51 if (numberLinesOfRegion > m_NumberOfLinesPerStrip && m_NumberOfLinesPerStrip > 0)
53 nbSplit =
static_cast<unsigned long>(std::ceil(
static_cast<double>(numberLinesOfRegion) /
static_cast<double>(m_NumberOfLinesPerStrip)));
61 this->m_Splitter = itk::ImageRegionSplitter<itkGetStaticConstMacro(ImageDimension)>::New();
62 this->m_ComputedNumberOfSplits = this->m_Splitter->GetNumberOfSplits(region, nbSplit);
63 otbMsgDevMacro(<<
"Computed number of split : " << this->m_ComputedNumberOfSplits)
66 this->m_Region = region;