21 #ifndef otbLogHelpers_h
22 #define otbLogHelpers_h
24 #include "itkImageRegion.h"
46 auto const& size = r.
m_region.GetSize();
47 auto const& idx = r.
m_region.GetIndex();
48 auto const idx_x1 = idx[0];
49 int const idx_x2 = idx[0] + size[0];
50 int const idx_y1 = idx[1];
51 auto const idx_y2 = idx[1] + size[1];
53 <<
"x ∈ ["<<idx_x1 <<
".." << idx_x2 <<
'['
54 <<
", y ∈ ["<<idx_y1 <<
".." << idx_y2 <<
'['
55 <<
", size=" << size[0]<<
'x'<<size[1] <<
" @("<<idx_x1<<
", "<<idx_y1<<
')'
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
friend std::ostream & operator<<(std::ostream &os, NeatRegionLogger const &r)
NeatRegionLogger(RegionType const ®ion)
itk::ImageRegion< 2u > RegionType
RegionType const & m_region