OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataHistogramRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef DataHistogramRecord_h
13 #define DataHistogramRecord_h
14 
15 #include<iostream>
16 
19 
20 namespace ossimplugins
21 {
28 {
29 public:
34 
39 
44 
49 
53  friend std::ostream& operator<<(std::ostream& os, const DataHistogramRecord& data);
54 
59 
60 
61 
65  std::string get_hist_desc()
66  {
67  return _hist_desc;
68  };
72  int get_nrec()
73  {
74  return _nrec;
75  };
80  {
81  return _tab_seq;
82  };
86  int get_nbin()
87  {
88  return _nbin;
89  };
93  int get_ns_lin()
94  {
95  return _ns_lin;
96  };
101  {
102  return _ns_pix;
103  };
108  {
109  return _ngrp_lin;
110  };
115  {
116  return _ngrp_pix;
117  };
122  {
123  return _nsamp_lin;
124  };
129  {
130  return _nsamp_pix;
131  };
135  double get_min_smp()
136  {
137  return _min_smp;
138  };
142  double get_max_smp()
143  {
144  return _max_smp;
145  };
149  double get_mean_smp()
150  {
151  return _mean_smp;
152  };
156  double get_std_smp()
157  {
158  return _std_smp;
159  };
163  double get_smp_inc()
164  {
165  return _smp_inc;
166  };
170  double get_min_hist()
171  {
172  return _min_hist;
173  };
177  double get_max_hist()
178  {
179  return _max_hist;
180  };
184  double get_mean_hist()
185  {
186  return _mean_hist;
187  };
191  double get_std_hist()
192  {
193  return _std_hist;
194  };
198  int get_nhist()
199  {
200  return _nhist;
201  };
202 
206  int* get_hist()
207  {
208  return _hist;
209  };
210 protected:
211 
212 
216  std::string _hist_desc;
220  int _nrec;
224  int _tab_seq;
228  int _nbin;
232  int _ns_lin;
236  int _ns_pix;
256  double _min_smp;
260  double _max_smp;
264  double _mean_smp;
268  double _std_smp;
272  double _smp_inc;
276  double _min_hist;
280  double _max_hist;
284  double _mean_hist;
288  double _std_hist;
292  int _nhist;
296  int* _hist;
297 private:
298 
299 
300 };
301 }
302 #endif
double _std_hist
Histogram standard deviation
int _ns_pix
Total number of pixels per line
std::string get_hist_desc()
Histogram descriptor.
double get_max_smp()
Maximum last bin
This class is able to read a data histogram record.
int _ns_lin
Total number of lines
int get_ngrp_lin()
Group size along line axis
double _std_smp
Sample standard deviation
double get_smp_inc()
Sample value increment
int _tab_seq
Table sequence number
int * _hist
Histogram table values.
double _mean_hist
Histogram mean value
double get_std_hist()
Histogram standard deviation
double _min_smp
Minimum first bin
friend std::ostream & operator<<(std::ostream &os, const DataHistogramRecord &data)
This function writes the DataHistogramRecord in a stream.
int _nhist
Histogram table size
int _ngrp_pix
Group size along pixel axis
double get_max_hist()
Maximum histogram value
int _nsamp_lin
Number of samples used per group along line axis
double get_min_smp()
Minimum first bin
std::string _hist_desc
Histogram descriptor.
DataHistogramRecord & operator=(const DataHistogramRecord &rhs)
Copy operator.
int get_nhist()
Histogram table size
int get_nrec()
Records per table
double get_mean_hist()
Histogram mean value
int _nsamp_pix
Number of samples used per group along pixel
double get_mean_smp()
Mean sample value
int get_ns_lin()
Total number of lines
int _ngrp_lin
Group size along line axis
friend std::istream & operator>>(std::istream &is, DataHistogramRecord &data)
This function reads a DataHistogramRecord from a stream.
int _nbin
Total number of table bins
double _mean_smp
Mean sample value
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
int get_nsamp_lin()
Number of samples used per group along line axis
double get_std_smp()
Sample standard deviation
int get_nsamp_pix()
Number of samples used per group along pixel
double _min_hist
Minimum histogram value
int get_tab_seq()
Table sequence number
int * get_hist()
Histogram table values of 16 bins for Ix16 bins for Q.
int get_ns_pix()
Total number of pixels per line
double get_min_hist()
Minimum histogram value
int get_nbin()
Total number of table bins
double _max_hist
Maximum histogram value
double _smp_inc
Sample value increment
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int get_ngrp_pix()
Group size along pixel axis