以時間為尺度測量

Python 的生醫影像分析

Stephen Bailey

Instructor

射血分率

$$ Ejection\ Fraction = \frac{LV_{max} - LV_{min}}{LV_{max}} $$

heart-beat

Python 的生醫影像分析

射血分率

流程

  1. 分割左心室
  2. 對時間序列中的每個 3D 體積計算體積
  3. 取最小與最大值
  4. 計算射血分率
Python 的生醫影像分析

計算各時間點的體積

# Stored in (t,z,x,y) format
vol_ts.shape
labels.shape
(20, 12, 256, 256)
(20, 12, 256, 256)

timeseries-plot

# Calculate voxel volume in mm^3
d0,d1,d2,d3=vol_ts.meta['sampling']
dvoxel = d1 * d2 * d3

# Instantiate empty list ts = np.zeros(20)
# Loop through volume time series for t in range(20):
nvoxels=ndi.sum(1, labels[t], index=1)
ts[t] = nvoxels * dvoxel
plt.plot(ts) plt.show()
Python 的生醫影像分析

計算射血分率

min_vol = ts.min()
max_vol = ts.max()

ejec_frac = (max_vol - min_vol) / max_vol
ejec_frac
0.58672

maximum-minimum-side-by-side

Python 的生醫影像分析

一起來練習吧!

Python 的生醫影像分析

Preparing Video For Download...