Description Usage Arguments Details Value See Also
Cut an rgb cube into two color cubes, each with as imilar number of elements.
1 | median_cut(image, vbox, iter = 1)
|
image |
List An image in list form, with three components: red, green, blue |
vbox |
List The output of |
iter |
Integer The number attached to the names of the two new images. |
Represents the rgb colorspace as a cube, with side lengths based on the red, green, and blue extents (difference between maximum and minimum within-color values).
The algorithm takes the side with the largest extent (extent information
is passed in via the vbox()
parameter),
and splits the cube along the median value.
Both halves of the cube are then returned.
Two new images in a list, each separated into rgb components
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.