powered by
Shortcut, returns the dimensions of an image if it had only one colour channel
gsdim(im)
an image
returns c(dim(im)[1:3],1)
# NOT RUN { imnoise(dim=gsdim(boats)) # }
Run the code above in your browser using DataLab