Class Histogram1D
Represents an operator that computes a sequence of one-dimensional histograms from each element in the sequence.
[Combinator]
[WorkflowElementCategory(ElementCategory.Transform)]
public class Histogram1D
- Inheritance
-
Histogram1D
- Inherited Members
Properties
Accumulate
Gets or sets a value specifying whether the histogram should be continuously updated.
public bool Accumulate { get; set; }
Property Value
Bins
Gets or sets the number of bins in the histogram.
public int Bins { get; set; }
Property Value
Max
Gets or sets the upper range of the histogram bins.
public float Max { get; set; }
Property Value
Min
Gets or sets the lower range of the histogram bins.
public float Min { get; set; }
Property Value
Normalize
Gets or sets a value specifying whether the histogram should be normalized such that the sum of bins adds up to one.
public bool Normalize { get; set; }
Property Value
Methods
Process(IObservable<float>)
Computes an observable sequence of one-dimensional histograms from each element in the source sequence.
public IObservable<Mat> Process(IObservable<float> source)
Parameters
source
IObservable<float>A sequence of 32-bit floating-point numbers used to calculate the one-dimensional histogram.
Returns
- IObservable<Mat>
A sequence of Mat objects representing the one-dimensional histogram calculated from the values in the
source
sequence.
Process<TArray>(IObservable<TArray>)
Computes an observable sequence of one-dimensional histograms from each element in the source sequence.
public IObservable<Mat> Process<TArray>(IObservable<TArray> source) where TArray : Arr
Parameters
source
IObservable<TArray>A sequence of array values used to calculate the one-dimensional histogram.
Returns
- IObservable<Mat>
A sequence of Mat objects representing the one-dimensional histogram calculated from the array values in the
source
sequence.
Type Parameters
TArray
The type of the array-like objects in the
source
sequence.