depth.BitmapImage {R.image}R Documentation

Gets the number of bitplanes of the image

Description

Gets the depth, i.e. the number of bitplanes, of the image.

Usage

## S3 method for class 'BitmapImage':
depth(this, ...)

Arguments

... Not used.

Value

Returns an integer.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

See also *dim(). For more information see BitmapImage.

Examples

   # Read the images 'logosm.ppm' of size 51x38.
   logo <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))

   print(depth(logo))  # 3
  

[Package R.image version 0.2.3 Index]