smooth_cuboid¶
- odl.phantom.geometric.smooth_cuboid(space, min_pt=None, max_pt=None, axis=0)[source]¶
Cuboid with smooth variations.
- Parameters:
- space
DiscretizedSpace 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
Noneis given, a quarter of the extent fromspace.min_pttowards the inside is chosen.- max_ptarray-like of shape
(space.ndim,), optional Upper right corner of the cuboid. If
Noneis given,min_ptplus half the extent is chosen.- axisint or sequence of int
Dimension(s) along which the smooth variation should happen.
- space
- Returns:
- phantom
space-element The generated cuboid phantom in
space. Values have range [0, 1].
- phantom