Description Usage Arguments Value Examples
Return a compressed image Quantizes an image into 2^b clusters and return a version of the image (the same size as the original) where each pixel's original colour is replaced with the nearest prototype colour.
1 | compress(img, b)
|
img |
array, the image to be processed |
b |
integer, the desired number of bits |
array, returns the compressed image
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.