isImage | R Documentation |
This function tried to determine whether an object is an image that the
package knows how to handle. If its class is "nifti"
,
"niftiImage"
, "internalImage"
or "MriImage"
, then the
result is always TRUE
. Likewise if it has an internal image pointer.
If it has no dim
attribute, or looks like an affine matrix, then the
result is FALSE
. Otherwise the value of the unsure
argument
is returned.
isImage(object, unsure = NA)
object |
An R object. |
unsure |
The value to return if the function can't tell whether or not
the |
Jon Clayden <code@clayden.org>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.