Panda3D
|
Used to return a pixel histogram in PNMImage::get_histogram(). More...
Public Member Functions | |
__init__ () | |
int | getCount (const PNMImageHeader::PixelSpec pixel) |
Returns the number of occurrences in the image of the indicated pixel color. More... | |
int | getCount (int n) |
Returns the number of occurrences in the image of the nth unique pixel color in the histogram. More... | |
int | getNumPixels () |
Returns the number of unique pixel colors in the histogram. More... | |
const PNMImageHeader::PixelSpec | getPixel (int n) |
Returns the nth unique pixel color in the histogram. These are ordered by default from most common to least common. More... | |
list | getPixels () |
write (Ostream out) | |
Used to return a pixel histogram in PNMImage::get_histogram().
__init__ | ( | ) |
int getCount | ( | const PNMImageHeader::PixelSpec | 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.
const PNMImageHeader::PixelSpec 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 | ) |