Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions
PNMImageHeader::Histogram Class Reference

List of all members.

Public Member Functions

 Histogram ()
int getCount (PixelSpec const pixel)
 Returns the number of occurrences in the image of the indicated pixel color.
int getCount (int n)
 Returns the number of occurrences in the image of the nth unique pixel color in the histogram.
int getNumPixels ()
 Returns the number of unique pixel colors in the histogram.
PixelSpec const getPixel (int n)
 Returns the nth unique pixel color in the histogram.
list getPixels ()
 write (ostream out)

Constructor & Destructor Documentation

Histogram ( )

Member Function Documentation

int getCount ( PixelSpec const  pixel)

Returns the number of occurrences in the image of the indicated pixel color.

int getCount ( int  n)

Returns the number of occurrences in the image of the nth unique pixel color in the histogram.

Returns the number of unique pixel colors in the histogram.

PixelSpec const getPixel ( int  n)

Returns the nth unique pixel color in the histogram.

These are ordered by default from most common to least common.

list getPixels ( )
write ( ostream  out)
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties