आकृति-विज्ञान मापना

Python में बायोमेडिकल इमेज विश्लेषण

Stephen Bailey

Instructor

मॉर्फोलॉजी

केटिंग, स्टीवन द्वारा. (2014) - Keating, Steven. (2014). MRI cranial slices of astrocytoma patient in 2007 and 2014. Zenodo. doi:10.5281/zenodo.16852, CC0, https://commons.wikimedia.org/w/index.php?curid=39593095

Python में बायोमेडिकल इमेज विश्लेषण

Spatial extent

Spatial extent इनका गुणनफल है:

  1. हर एलिमेंट द्वारा घिरी जगह
  2. एरे एलिमेंट्स की संख्या

heart-3d-image

# Calculate volume per voxel
d0, d1, d2 = vol.meta['sampling']
dvoxel = d0 * d1 * d2

# Count label voxels nvoxels=ndi.sum(1, label, index=1)
# Calculate volume of label volume = nvoxels * dvoxel volume
1249023
Python में बायोमेडिकल इमेज विश्लेषण

डिस्टेंस ट्रांसफॉर्मेशन

मूल छवि पर दूरी ओवरले

          Euclidean Distance

# Create a left ventricle mask
mask=np.where(labels == 1, 1, 0)
# In terms of voxels
d=ndi.distance_transform_edt(mask)

d.max()
12.3847
# In terms of space
d=ndi.distance_transform_edt(mask,
    sampling=vol.meta['sampling'])
d.max()
5.8038
Python में बायोमेडिकल इमेज विश्लेषण

Center of mass

com=ndi.center_of_mass(vol,
                       labels, 
                       index=1)

com
(5.5235, 128.0590, 128.0993)
plt.imshow(vol[5], cmap='gray')
plt.scatter(com[2], com[1])
plt.show()

द्रव्यमान का केंद्र

Python में बायोमेडिकल इमेज विश्लेषण

अभ्यास करते हैं!

Python में बायोमेडिकल इमेज विश्लेषण

Preparing Video For Download...