http://www.emgu.com
Calculates a histogram of a set of arrays.
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void CalcHist(
IInputArrayOfArrays images,
int[] channels,
IInputArray mask,
IOutputArray hist,
int[] histSize,
float[] ranges,
bool accumulate
)
Public Shared Sub CalcHist (
images As IInputArrayOfArrays,
channels As Integer(),
mask As IInputArray,
hist As IOutputArray,
histSize As Integer(),
ranges As Single(),
accumulate As Boolean
)
public:
static void CalcHist(
IInputArrayOfArrays^ images,
array<int>^ channels,
IInputArray^ mask,
IOutputArray^ hist,
array<int>^ histSize,
array<float>^ ranges,
bool accumulate
)
static member CalcHist :
images : IInputArrayOfArrays *
channels : int[] *
mask : IInputArray *
hist : IOutputArray *
histSize : int[] *
ranges : float32[] *
accumulate : bool -> unit
Parameters
- images
- Type: Emgu.CVIInputArrayOfArrays
Source arrays. They all should have the same depth, CV_8U or CV_32F , and the same size. Each of them can have an arbitrary number of channels. - channels
- Type: SystemInt32
List of the channels used to compute the histogram. - mask
- Type: Emgu.CVIInputArray
Optional mask. If the matrix is not empty, it must be an 8-bit array of the same size as images[i] . The non-zero mask elements mark the array elements counted in the histogram. - hist
- Type: Emgu.CVIOutputArray
Output histogram - histSize
- Type: SystemInt32
Array of histogram sizes in each dimension. - ranges
- Type: SystemSingle
Array of the dims arrays of the histogram bin boundaries in each dimension. - accumulate
- Type: SystemBoolean
Accumulation flag. If it is set, the histogram is not cleared in the beginning when it is allocated. This feature enables you to compute a single histogram from several sets of arrays, or to update the histogram in time.
See Also