isImage: Test whether an object represents an image

Description Usage Arguments Author(s)

View source: R/image.R

Description

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.

Usage

1
isImage(object, unsure = NA)

Arguments

object

An R object.

unsure

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

Author(s)

Jon Clayden <code@clayden.org>



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 ian@mutexlabs.com.

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

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