wx.ImageHistogram

Inheritance diagram for wx.ImageHistogram:



Description

Proxy of C++ ImageHistogram class.

Class API

Methods

__init__()
No docstrings available for this method.

FindFirstUnusedColour(startR=1, startG=0, startB=0)

Find first colour that is not used in the image and has higher RGB values than startR, startG, startB. Returns a tuple consisting of a success flag and rgb values.

Parameters:

  • startR (int)
  • startG (int)
  • startB (int)

Returns:

(success, r, g, b)


GetCount(key)

Returns the pixel count for the given key. Use MakeKey to create a key value from a RGB triplet.

Parameters:

  • key (int)

Returns:

int


GetCountColour(colour)

Returns the pixel count for the given wx.Colour value.

Parameters:


Returns:

int


GetCountRGB(r, g, b)

Returns the pixel count for the given RGB values.

Parameters:

  • r (byte)
  • g (byte)
  • b (byte)

Returns:

int


MakeKey(r, g, b)

Get the key in the histogram for the given RGB values

Parameters:

  • r (byte)
  • g (byte)
  • b (byte)

Returns:

int