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))

imager documentation built on May 29, 2024, 1:38 a.m.