1.0.2 • Published 4 years ago
histogram.gl v1.0.2
histogram.gl
yarn add histogram.gl
# or
npm install histogram.gl --save
Example:
import { createRgbaHistogram, createSingleChannelHistogram } from 'histogram.gl';
createRgbaHistogram(imageData, imageWidth, imageHeight)
.then((histogramData) => {
console.log(histogramData);
});
createSingleChannelHistogram(channelData, imageWidth, imageHeight)
.then((histogramData) => {
console.log(histogramData);
});
0 dependencies.
Inspired by