GLIMSView Source Code Documentation

Hash Class Reference
[Interactive Image Histogram]

#include <histogram.h>

List of all members.


Detailed Description

A value and count associated with the number of occurences of val.

This is used with Histogram to provide a DN count on an image.

Author:
Dan Mingus 2002-10-09 modified
History:
2004-10-21 Deborah Lee Soltesz - Formatted documentation for doxygen

Definition at line 17 of file histogram.h.


Public Member Functions

 Hash (double val)
 Sets the value to val and the count to 1.
void incCnt ()
 Increment the count for this value.
double getVal ()
 Gets the value.
int getCnt ()
 Gets the count.

Public Attributes

double mVal
 value
int mCnt
 count

Constructor & Destructor Documentation

Hash::Hash ( double  val  )  [inline]

Sets the value to val and the count to 1.

Definition at line 27 of file histogram.h.

References mCnt, and mVal.


Member Function Documentation

void Hash::incCnt (  )  [inline]

Increment the count for this value.

Definition at line 36 of file histogram.h.

References mCnt.

Referenced by Histogram::calcHist().

double Hash::getVal (  )  [inline]

Gets the value.

Definition at line 44 of file histogram.h.

References mVal.

int Hash::getCnt (  )  [inline]

Gets the count.

Definition at line 52 of file histogram.h.

References mCnt.


Member Data Documentation

double Hash::mVal

value

Definition at line 19 of file histogram.h.

Referenced by getVal(), and Hash().

count

Definition at line 20 of file histogram.h.

Referenced by getCnt(), Hash(), and incCnt().


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

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov