Learn R Programming

espadon (version 1.11.3)

grid.equal: Comparison of the grids of two volume objects

Description

The grid.equal function checks that two volumes share the same grid, i.e. the same frame of reference, the same origin point, and the same dx, dy, dz steps.

Usage

grid.equal(vol1, vol2)

Value

Returns TRUE if the 2 volumes share the same grid.

Arguments

vol1, vol2

"volume" class objects

Examples

Run this code
# loading of toy-patient objects
patient <- toy.load.patient (modality = c ("ct","mr","rtdose"), roi.name = "", 
                             dxyz = c (4, 4, 4), beam.nb = 1)

# Comparison of the grids
grid.equal (patient$rtdose[[1]], patient$ct[[1]])
grid.equal (patient$mr[[1]], patient$ct[[1]])

Run the code above in your browser using DataLab