imager (version 0.45.8)

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
cimg.limit.openmp()
imnoise(dim=gsdim(boats))

Run the code above in your browser using DataLab