Description Usage Arguments Value Examples
View source: R/compression_perrrfect.R
The function applies a lossy pooling algorithm to compress the specified colour band and the resulting cimg object is returned.
1 | pool_band(img, kernel_size, pooling_func)
|
img |
A 'matrix' 'array' type object of 2 dimensions representing a color band of either a greyscale image or a colour image. |
kernel_size |
The size of the length and width of the kernel to be passed over the image. Default: 2 |
pooling_func |
The pooling algorithm to be used. Three options: "max", "min", and "mean". Default: "max" |
A cimg type image of 4 dimensions representing a greyscale or colour image.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.