isImage: Test whether an object represents an image

Description Usage Arguments Author(s)

View source: R/image.R


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)



An R object.


The value to return if the function can't tell whether or not the object is an image.


Jon Clayden <>

RNiftyReg documentation built on May 20, 2017, 12:52 a.m.
Search within the RNiftyReg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.