StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| .travis.yml | 5 years ago | |
| history.md | 5 years ago | |
| index.js | 5 years ago | |
| package.json | 5 years ago | |
| readme.md | 5 years ago | |
readme.md
image-palette

Extract palette from pixels array, return pixels mapped to palette. Useful for organizing palette-based encoding, like GIF, or various limited colors renderers, like gl-scatter2d.
Inspired by get-rgba-palette.
Usage
var palette = require('image-palette')
var pixels = require('image-pixels')
var {ids, colors} = palette(await pixels('./image.png'))
API
var {ids, colors, amount} = palette(pixels, count=5)
Extract palette from the input pixels array with rgba pixels sequence, whether flat or nested.
colorsis a list of extracted colors[[r, g, b, a], [r, g, b, a], ...].idsis an array of input pixels mapped to extractedcolors.amountis an array with amounts corresponding to the extracted colors, from0..1range.countis max number of colors to extract.
Related
- image-pixels − load pixels data from any image source.
- image-save − save image/pixel data to a file, canvas or array.
- image-equal − test if two images are equal, based on fuzzy comparison.
License
© 2018 Dmitry Yv. MIT License.
