Check image to ensure it has the right type
img_check(img, keep_alpha = F, keep_color = F)
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? |
a cimg of the correct specifications (if possible), otherwise, will error out