powered by
nrow, ncol and nchan return the number of rows, columns or channels present in an Image object.
Image
nrow.Rcpp_Image(x) ncol.Rcpp_Image(x) nchan(x)
An Image object.
A numeric value.
dim which returns all dimensions.
dim
# NOT RUN { balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision")) nrow(balloon) ncol(balloon) nchan(balloon) # }
Run the code above in your browser using DataLab