Panda3D
|
#include <pandadoc.hpp>
Public Member Functions | |
__init__ () | |
__init__ (const PNMImageHeader::Histogram) | |
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. | |
list | getPixels () |
write (Ostream out) | |
__init__ | ( | ) |
__init__ | ( | const PNMImageHeader::Histogram | ) |
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 | ) |