Trait IsVoxelImage

Source
pub trait IsVoxelImage<T> {
    // Required methods
    fn size_x(&self) -> usize;
    fn size_y(&self) -> usize;
    fn size_z(&self) -> usize;
    fn voxel(&self, x: usize, y: usize, z: usize) -> Result<T>;
}
Expand description

IsVoxelImage is a trait used for any type of voxel image

Required Methods§

Source

fn size_x(&self) -> usize

Should return the number of voxels in x-direction

Source

fn size_y(&self) -> usize

Should return the number of voxels in y-direction

Source

fn size_z(&self) -> usize

Should return the number of voxels in z-direction

Source

fn voxel(&self, x: usize, y: usize, z: usize) -> Result<T>

Should return the voxel at a given x y z coordinate

Implementors§