check_values: This function is to be used in conjunction with...

Description Usage Arguments Examples

View source: R/compression_perrrfect.R

Description

This function checks that the img and kernel size are valid inputs and stops with an error if not.

Usage

1
check_values(img, kernel_size)

Arguments

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

Examples

1
2
img <- imager::as.cimg(imager::boats)
check_values(img, kernel_size=2)

UBC-MDS/pictureperrrfect documentation built on March 28, 2021, 1:28 p.m.