Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | Friends | List of all members
Core::Histogram Class Reference

Public Member Functions

 Histogram (const signed char *data, size_t size)
 
 Histogram (const unsigned char *data, size_t size)
 
 Histogram (const short *data, size_t size)
 
 Histogram (const unsigned short *data, size_t size)
 
 Histogram (const int *data, size_t size)
 
 Histogram (const unsigned int *data, size_t size)
 
 Histogram (const float *data, size_t size)
 
 Histogram (const double *data, size_t size)
 
bool compute (const signed char *data, size_t size)
 Compute a histogram on an arbitrary size of data.
 
bool compute (const unsigned char *data, size_t size)
 
bool compute (const short *data, size_t size)
 
bool compute (const unsigned short *data, size_t size)
 
bool compute (const int *data, size_t size)
 
bool compute (const unsigned int *data, size_t size)
 
bool compute (const float *data, size_t size)
 
bool compute (const double *data, size_t size)
 
double get_min () const
 Get the minimum value of the data.
 
double get_max () const
 Get the maximum value of the data.
 
double get_cum_value (double fraction) const
 Get the value that has a certain fraction of the data be smaller values.
 
size_t get_min_bin () const
 Get the minimum size of a histogram bar.
 
size_t get_max_bin () const
 Get the maximum size of a histogram bar.
 
double get_bin_size () const
 Get the size of each bin in data values.
 
double get_bin_start (size_t idx=0) const
 Get the value where a specific bin starts.
 
double get_bin_end (size_t idx=0) const
 Get the value where a specific bin ends.
 
size_t get_size () const
 
const std::vector< size_t > & get_bins () const
 Get the actual histogram data.
 
bool is_valid () const
 Check whther histogram is valid.
 

Friends

std::string ExportToString (const Histogram &value)
 Put the contents of the histogram into a string.
 
bool ImportFromString (const std::string &str, Histogram &value)
 Import the histogram from a string and return true if the conversion succeeded.
 

The documentation for this class was generated from the following files: