Panda3D
|
Public Member Functions | |
int | get_count (const PixelSpec &pixel) const |
Returns the number of occurrences in the image of the indicated pixel color. | |
int | get_count (int n) const |
Returns the number of occurrences in the image of the nth unique pixel color in the histogram. | |
int | get_num_pixels () const |
const PixelSpec & | get_pixel (int n) const |
void | swap (PixelCount &pixels, HistMap &hist_map) |
Swaps the data in the Histogram with the indicated data. | |
void | write (std::ostream &out) const |
Public Attributes | |
get_num_pixels | |
Returns the number of unique pixel colors in the histogram. | |
get_pixel | |
Returns the nth unique pixel color in the histogram. | |
Definition at line 167 of file pnmImageHeader.h.
|
inline |
Definition at line 450 of file pnmImageHeader.I.
|
inline |
Returns the number of occurrences in the image of the indicated pixel color.
Definition at line 486 of file pnmImageHeader.I.
|
inline |
Returns the number of occurrences in the image of the nth unique pixel color in the histogram.
Definition at line 476 of file pnmImageHeader.I.
|
inline |
Swaps the data in the Histogram with the indicated data.
This is normally used to load the Histogram data initially in PNMImage::make_histogram().
Definition at line 500 of file pnmImageHeader.I.
Referenced by PNMImage::make_histogram().
void PNMImageHeader::Histogram::write | ( | std::ostream & | out | ) | const |
Definition at line 494 of file pnmImageHeader.cxx.
|
inline |
Returns the number of unique pixel colors in the histogram.
Definition at line 175 of file pnmImageHeader.h.
|
inline |
Returns the nth unique pixel color in the histogram.
These are ordered by default from most common to least common.
Definition at line 175 of file pnmImageHeader.h.