grid.equal {espadon}R Documentation

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)

Arguments

vol1, vol2

"volume" class objects

Value

Returns TRUE if the 2 volumes share the same grid.

Examples

# 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]])

[Package espadon version 1.6.0 Index]