Learn R Programming

imager (version 0.42.19)

gsdim: Grayscale dimensions of image

Description

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

Usage

gsdim(im)

Value

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

Arguments

im

an image

Author

Simon Barthelme

Examples

Run this code
imnoise(dim=gsdim(boats))

Run the code above in your browser using DataLab