Histogram-analyze
Histogram-analyze is a simple histogram analyzing tool working on Browser, Requirejs, Node.
How to use
Histogram-analyze have 3 features
- histogram1D
- circularHistogram1D
- histogram2D
constructor
new HistogramAnalze.histogram1D( 5 );
new HistogramAnalze.circularHistogram1D( 5 , 1 );
new HistogramAnalyze.histogram2D( 3, 3, 1 );
common
.max()
.min()
.cv(kernel)
.medianSmoothing(kSize[, repeat])
.gaussianSmoothing(kSize[, repeat])
.flatten(saturate)
.findpeaks()
use like this
var histogram1D = HistogramAnalyze.histogram1D
histogram1D([1,0,4,5,20,4,3,3,11,1,2,1])
.flatten(0.1)
.findpeaks()
histogram1D([1,0,4,5,20,4,3,3,11,1,2,1])
.smoothing(3,2)
.flatten(0.1)
.findpeaks()