vol.copy {espadon}R Documentation

Creating a volume from another one

Description

The vol.copy function creates a "volume" class object, with the same grid as the vol volume object.

Usage

vol.copy(vol, alias = "", modality = NULL, description = NULL, number = NULL)

Arguments

vol

"volume" class object, template of the created object.

alias

Character string, $object.alias of the created object.

modality

Character string, modality of the created volume. If modality = NULL, then the created object will have the modality of vol.

description

Character string, description of the returned object. If descritption = NULL, then the created object will have the description of vol.

number

number of the returned volume. If number = NULL, then the returned object will have the number of vol.

Value

Returns a "volume" class object (see espadon.class for class definitions), with the same grid as vol, in which $vol3D.data is initialized to NA.

Examples

# loading of toy-patient objects (decrease dxyz for  better result)
patient <- toy.load.patient (modality = "ct", roi.name = "",dxyz = c (4, 4, 4))
CT <- patient$ct[[1]]

# creating a volume
vol.from.CT <- vol.copy (CT, alias = "ct reference")
str (vol.from.CT)

[Package espadon version 1.2.0 Index]