tomopy.misc.phantom

用于生成合成幻影的模块。

Functions:

baboon([size, dtype])

负载测试狒狒图像数组。

barbara([size, dtype])

负载测试Barbara图像阵列。

cameraman([size, dtype])

负载测试摄影师图像阵列。

checkerboard([size, dtype])

负载测试棋盘图像数组。

lena([size, dtype])

负载测试Lena图像阵列。

peppers([size, dtype])

负载测试辣椒图像数组。

phantom(size, params[, dtype])

使用椭球体参数列表生成给定大小的立方体。

shepp2d([size, dtype])

负载测试谢普-洛根图像阵列。

shepp3d([size, dtype])

加载3D谢普-洛根图像阵列。

tomopy.misc.phantom.baboon(size=512, dtype='float32')[源代码]

负载测试狒狒图像数组。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.barbara(size=512, dtype='float32')[源代码]

负载测试Barbara图像阵列。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.cameraman(size=512, dtype='float32')[源代码]

负载测试摄影师图像阵列。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.checkerboard(size=512, dtype='float32')[源代码]

负载测试棋盘图像数组。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.lena(size=512, dtype='float32')[源代码]

负载测试Lena图像阵列。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.peppers(size=512, dtype='float32')[源代码]

负载测试辣椒图像数组。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.phantom(size, params, dtype='float32')[源代码]

使用椭球体参数列表生成给定大小的立方体。

参数:
  • size ( tuple of int )--输出多维数据集的大小。

  • params ( list of dict )--带有定义要包括在多维数据集中的椭球体的参数的词典列表。

  • dtype ( str, optional )--输出ndarray的数据类型。

返回:

ndarray --使用指定椭球体填充的3D对象。

tomopy.misc.phantom.shepp2d(size=512, dtype='float32')[源代码]

负载测试谢普-洛根图像阵列。

参数:
  • size ( int or tuple of int, optional )-输出图像的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。

tomopy.misc.phantom.shepp3d(size=128, dtype='float32')[源代码]

加载3D谢普-洛根图像阵列。

参数:
  • size ( int or tuple, optional )--3D数据的大小。

  • dtype ( str, optional )--数组所需的数据类型。

返回:

ndarray --输出3D测试图像。