OLD | NEW |
1 /* NeuQuant Neural-Net Quantization Algorithm | 1 /* NeuQuant Neural-Net Quantization Algorithm |
2 * ------------------------------------------ | 2 * ------------------------------------------ |
3 * | 3 * |
4 * Copyright (c) 1994 Anthony Dekker | 4 * Copyright (c) 1994 Anthony Dekker |
5 * | 5 * |
6 * NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. | 6 * NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. |
7 * See "Kohonen neural networks for optimal colour quantization" | 7 * See "Kohonen neural networks for optimal colour quantization" |
8 * in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 351-367. | 8 * in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 351-367. |
9 * for a discussion of the algorithm. | 9 * for a discussion of the algorithm. |
10 * See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML | 10 * See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 /* | 425 /* |
426 Method: lookupRGB | 426 Method: lookupRGB |
427 | 427 |
428 looks for the closest *r*, *g*, *b* color in the map and | 428 looks for the closest *r*, *g*, *b* color in the map and |
429 returns its index | 429 returns its index |
430 */ | 430 */ |
431 this.lookupRGB = inxsearch; | 431 this.lookupRGB = inxsearch; |
432 } | 432 } |
433 | 433 |
434 module.exports = NeuQuant; | 434 module.exports = NeuQuant; |
OLD | NEW |