29 _hist_desc(rhs._hist_desc),
31 _tab_seq(rhs._tab_seq),
35 _ngrp_lin(rhs._ngrp_lin),
36 _ngrp_pix(rhs._ngrp_pix),
37 _nsamp_lin(rhs._nsamp_lin),
38 _nsamp_pix(rhs._nsamp_pix),
39 _min_smp(rhs._min_smp),
40 _max_smp(rhs._max_smp),
41 _mean_smp(rhs._mean_smp),
42 _std_smp(rhs._std_smp),
43 _smp_inc(rhs._smp_inc),
44 _min_hist(rhs._min_hist),
45 _max_hist(rhs._max_hist),
46 _mean_hist(rhs._mean_hist),
47 _std_hist(rhs._std_hist),
51 for (
int i=0;i<rhs.
_nhist;i++)
84 os<<
"hist_desc:"<<data.
_hist_desc.c_str()<<std::endl;
86 os<<
"nrec:"<<data.
_nrec<<std::endl;
88 os<<
"tab_seq:"<<data.
_tab_seq<<std::endl;
90 os<<
"nbin:"<<data.
_nbin<<std::endl;
92 os<<
"ns_lin:"<<data.
_ns_lin<<std::endl;
94 os<<
"ns_pix:"<<data.
_ns_pix<<std::endl;
96 os<<
"ngrp_lin:"<<data.
_ngrp_lin<<std::endl;
98 os<<
"ngrp_pix:"<<data.
_ngrp_pix<<std::endl;
104 os<<
"min_smp:"<<data.
_min_smp<<std::endl;
106 os<<
"max_smp:"<<data.
_max_smp<<std::endl;
108 os<<
"mean_smp:"<<data.
_mean_smp<<std::endl;
110 os<<
"std_smp:"<<data.
_std_smp<<std::endl;
112 os<<
"smp_inc:"<<data.
_smp_inc<<std::endl;
114 os<<
"min_hist:"<<data.
_min_hist<<std::endl;
116 os<<
"max_histd:"<<data.
_max_hist<<std::endl;
120 os<<
"std_hist:"<<data.
_std_hist<<std::endl;
122 os<<
"nhist:"<<data.
_nhist<<std::endl;
124 for(
int i=0;i<data.
_nhist;i++)
126 os<<
"his["<<i<<
"]:"<<data.
_hist[i]<<std::endl;
141 data.
_nrec = atoi(buff);
149 data.
_nbin = atoi(buff);
215 if(data.
_hist != NULL)
224 else {nhist = 1024 ; }
226 data.
_hist =
new int[nhist];
227 for (
int i=0;i<nhist;i++)
231 data.
_hist[i] = atoi(buff);
double _std_hist
Histogram standard deviation
int _ns_pix
Total number of pixels per line
This class is able to read a data histogram record.
double _max_smp
Maximum last bin
int _ns_lin
Total number of lines
double _std_smp
Sample standard deviation
int _tab_seq
Table sequence number
int * _hist
Histogram table values.
double _mean_hist
Histogram mean value
double _min_smp
Minimum first bin
int _nhist
Histogram table size
int _ngrp_pix
Group size along pixel axis
int _nsamp_lin
Number of samples used per group along line axis
std::string _hist_desc
Histogram descriptor.
DataHistogramRecord & operator=(const DataHistogramRecord &rhs)
Copy operator.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
int _nsamp_pix
Number of samples used per group along pixel
int _nrec
Records per table
int _ngrp_lin
Group size along line axis
int _nbin
Total number of table bins
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
double _mean_smp
Mean sample value
std::basic_istream< char > istream
Base class for char input streams.
DataHistogramRecord()
Constructor.
double _min_hist
Minimum histogram value
double _max_hist
Maximum histogram value
double _smp_inc
Sample value increment
~DataHistogramRecord()
Destructor.
std::basic_ostream< char > ostream
Base class for char output streams.