Learn R Programming

imager (version 0.42.10)

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

Examples

Run this code
# NOT RUN {
imnoise(dim=gsdim(boats))
# }

Run the code above in your browser using DataLab