Table Of Contents

Previous topic

core.reference.coordinate_system

Next topic

core.transforms.affines

This Page

core.reference.slices

Module: core.reference.slices

A set of methods to get coordinate maps which represent slices in space.

Functions

nipy.core.reference.slices.bounding_box(coordmap, shape)

Determine a valid bounding box from a CoordinateMap instance.

Parameters:coordmap : CoordinateMap
nipy.core.reference.slices.from_origin_and_columns(origin, colvectors, shape, output_coords)

Return a CoordinateMap representing a slice based on a given origin, a pair of direction vectors which span the slice, and a shape.

Parameters:
origin : the corner of the output coordinates, i.e. the [0]*ndimin

point

colvectors : the steps in each voxel direction shape : how many steps in each voxel direction output_coords : a CoordinateSystem for the output

Returns:

CoordinateMap

nipy.core.reference.slices.xslice(x, zlim, ylim, output_coords, shape)

Return a slice through a 3d box with x fixed.

Parameters:
y : TODO

TODO

zlim : TODO

TODO

ylim : TODO

TODO

xlim : TODO

TODO

shape : TODO

TODO

output_coords : TODO

TODO

nipy.core.reference.slices.yslice(y, zlim, xlim, output_coords, shape)

Return a slice through a 3d box with y fixed.

Parameters:
x : TODO

TODO

zlim : TODO

TODO

ylim : TODO

TODO

xlim : TODO

TODO

shape : TODO

TODO

output_coords : TODO

TODO

nipy.core.reference.slices.zslice(z, ylim, xlim, output_coords, shape)

Return a slice through a 3d box with z fixed.

Parameters:
z : TODO

TODO

ylim : TODO

TODO

xlim : TODO

TODO

shape : TODO

TODO

output_coords : TODO

TODO