Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.pixset

Methods to convert various objects to pixsets


Description

Methods to convert various objects to pixsets

Usage

as.pixset(x, ...)

## S3 method for class 'cimg'
as.pixset(x, ...)

## S3 method for class 'pixset'
as.cimg(obj, ...)

Arguments

x

object to convert to pixset

...

ignored

obj

pixset to convert

Methods (by class)

  • cimg: convert cimg to pixset

  • pixset: convert pixset to cimg

Examples

#When converting an image to a pixset, the default is to include all pixels with non-zero value 
as.pixset(boats)
#The above is equivalent to:
boats!=0

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.