as.pixset | R Documentation |
Methods to convert various objects to pixsets
as.pixset(x, ...)
## S3 method for class 'cimg'
as.pixset(x, ...)
## S3 method for class 'pixset'
as.cimg(obj, ...)
x |
object to convert to pixset |
... |
ignored |
obj |
pixset to convert |
as.pixset(cimg)
: convert cimg to pixset
as.cimg(pixset)
: convert pixset to cimg
#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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.