tomopy.misc.phantom
¶
Module for generating synthetic phantoms.
Functions:
|
Load test baboon image array. |
|
Load test Barbara image array. |
|
Load test cameraman image array. |
|
Load test checkerboard image array. |
|
Load test Lena image array. |
|
Load test peppers image array. |
|
Generate a cube of given size using a list of ellipsoid parameters. |
|
Load test Shepp-Logan image array. |
|
Load 3D Shepp-Logan image array. |
-
tomopy.misc.phantom.
baboon
(size=512, dtype='float32')[source]¶ Load test baboon image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
barbara
(size=512, dtype='float32')[source]¶ Load test Barbara image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
cameraman
(size=512, dtype='float32')[source]¶ Load test cameraman image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
checkerboard
(size=512, dtype='float32')[source]¶ Load test checkerboard image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
lena
(size=512, dtype='float32')[source]¶ Load test Lena image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
peppers
(size=512, dtype='float32')[source]¶ Load test peppers image array.
- Parameters
size (int or tuple of int, optional) – Size of the output image.
dtype (str, optional) – The desired data-type for the array.
- Returns
ndarray – Output 3D test image.
-
tomopy.misc.phantom.
phantom
(size, params, dtype='float32')[source]¶ Generate a cube of given size using a list of ellipsoid parameters.
- Parameters
size (tuple of int) – Size of the output cube.
params (list of dict) – List of dictionaries with the parameters defining the ellipsoids to include in the cube.
dtype (str, optional) – Data type of the output ndarray.
- Returns
ndarray – 3D object filled with the specified ellipsoids.