materials.character will read the materials from an im3d
compatible image file on disk.
materials.hxsurf will extract the materials from an
materials(x, ...) ## Default S3 method: materials(x, ...) ## S3 method for class 'character' materials(x, ...) ## S3 method for class 'hxsurf' materials(x, ...)
An object in memory or, for
additional parameters passed to methods (presently ignored)
Note that the id column will be the 1-indexed order that the
material appears in the
surf$Region list for
and the 0-indexed mask values for an image.
Presently only amiramesh images are supported since they have a standardised way of encoding labels, whereas nrrds would have to use key-value pairs according to some ad hoc convention.
data.frame with columns
name, id, col
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.