smooth_cuboid

odl.phantom.geometric.smooth_cuboid(space, min_pt=None, max_pt=None, axis=0)[source]

Cuboid with smooth variations.

Parameters
spaceDiscretizedSpace

Discretized space in which the phantom is supposed to be created.

min_ptarray-like of shape (space.ndim,), optional

Lower left corner of the cuboid. If None is given, a quarter of the extent from space.min_pt towards the inside is chosen.

max_ptarray-like of shape (space.ndim,), optional

Upper right corner of the cuboid. If None is given, min_pt plus half the extent is chosen.

axisint or sequence of int

Dimension(s) along which the smooth variation should happen.

Returns
phantomspace-element

The generated cuboid phantom in space. Values have range [0, 1].