isImage: Test whether an object represents an image

Description Usage Arguments Author(s)


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 <>

Search within the RNiftyReg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

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

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