Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions

# 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.

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.

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

list getPixels | ( |  | ) |

write | ( | ostream | out | ) |

All Classes Namespaces Functions Variables Enumerations Enumerator Properties