Histogram is a bar graph to display data frequencey.
More...
#include <histogram.h>
Histogram is a bar graph to display data frequencey.
- Examples
- cpu/histogram.cpp, and opencl/histogram.cpp.
◆ Histogram() [1/3]
Creates a Histogram object.
- Parameters
-
[in] | pNBins | is number of bins the data is sorted out |
[in] | pDataType | takes one of the values of fg_dtype that indicates the integral data type of histogram data |
◆ Histogram() [2/3]
Copy constructor for Histogram.
- Parameters
-
[in] | pOther | is the Histogram of which we make a copy of. |
◆ Histogram() [3/3]
Construct Histogram ojbect from fg_histogram resource handle.
- Parameters
-
[in] | pHandle | is the input fg_histogram resource handle |
- Note
- This kind of construction assumes ownership of the resource handle is released during the Histogram object's destruction.
◆ ~Histogram()
◆ alphas()
FGAPI unsigned alphas |
( |
| ) |
const |
Get the buffer identifier for alpha values per vertex.
- Returns
- alpha values buffer resource id.
◆ alphasSize()
FGAPI unsigned alphasSize |
( |
| ) |
const |
Get the alpha values buffer size in bytes.
- Returns
- alpha buffer size in bytes
◆ colors()
FGAPI unsigned colors |
( |
| ) |
const |
◆ colorsSize()
FGAPI unsigned colorsSize |
( |
| ) |
const |
◆ get()
Get the handle to internal implementation of Histogram.
◆ setColor() [1/2]
◆ setColor() [2/2]
FGAPI void setColor |
( |
const float |
pRed, |
|
|
const float |
pGreen, |
|
|
const float |
pBlue, |
|
|
const float |
pAlpha |
|
) |
| |
Set the color of bar in the bar graph(histogram)
This is global alpha value for the histogram rendering that takes effect if individual bar alphas are not set by calling the following member functions
- Parameters
-
[in] | pRed | is Red component in range [0, 1] |
[in] | pGreen | is Green component in range [0, 1] |
[in] | pBlue | is Blue component in range [0, 1] |
[in] | pAlpha | is Alpha component in range [0, 1] |
◆ setLegend()
FGAPI void setLegend |
( |
const char * |
pLegend | ) |
|
Set legend for histogram plot.
- Parameters
-
◆ vertices()
FGAPI unsigned vertices |
( |
| ) |
const |
◆ verticesSize()
FGAPI unsigned verticesSize |
( |
| ) |
const |
The documentation for this class was generated from the following file: