Description Usage Arguments Examples
View source: R/compression_perrrfect.R
This function checks that the img and kernel size are valid inputs and stops with an error if not.
1 | check_values(img, kernel_size)
|
img |
A cimg type object of 4 dimensions representing a greyscale or colour image. |
kernel_size |
The size of the length and width of the kernel to be passed over the image. Default: 2 |
1 2 | img <- imager::as.cimg(imager::boats)
check_values(img, kernel_size=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.