powered by
Methods to convert various objects to pixsets
as.pixset(x, ...)# S3 method for cimg as.pixset(x, ...)# S3 method for pixset as.cimg(obj, ...)
# S3 method for cimg as.pixset(x, ...)
# S3 method for pixset as.cimg(obj, ...)
object to convert to pixset
ignored
pixset to convert
as.pixset(cimg): convert cimg to pixset
as.pixset(cimg)
as.cimg(pixset): convert pixset to cimg
as.cimg(pixset)
#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
Run the code above in your browser using DataLab