gsdim: Grayscale dimensions of image

View source: R/cimg_class.R

gsdimR Documentation

Grayscale dimensions of image

Description

Shortcut, returns the dimensions of an image if it had only one colour channel

Usage

gsdim(im)

Arguments

im

an image

Value

returns c(dim(im)[1:3],1)

Author(s)

Simon Barthelme

Examples

imnoise(dim=gsdim(boats))

dahtah/imager documentation built on Feb. 23, 2023, 10:16 p.m.