countNonZero | R Documentation |
countNonZero
returns the number of non-zero pixels in an
Image
object.
countNonZero(image)
image |
A single-channel |
An integer.
Simon Garnier, garnier@njit.edu
Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
changeColorSpace(balloon, "GRAY", "self")
countNonZero(balloon > 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.