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, |
modality |
Character string, modality of the created volume. If
|
description |
Character string, description of the returned object. If
|
number |
number of the returned volume. If |
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.7.2 Index]