img_check: Check image to ensure it has the right type

Description Usage Arguments Value

View source: R/contour.R

Description

Check image to ensure it has the right type

Usage

1
img_check(img, keep_alpha = F, keep_color = F)

Arguments

img

an object to check to see if it is a cimg with the right channels

keep_alpha

should the image keep an alpha channel?

keep_color

should the image be in color?

Value

a cimg of the correct specifications (if possible), otherwise, will error out


srvanderplas/ImageAlignR documentation built on Jan. 24, 2021, 5:10 a.m.