Creating a 3D Model of the Skull from CT Scans
I obtained the following CT scan of a spinal segment here. This just demonstrates how easy it actually is to make a 3D model of something.
library(ANTsR)
library(rgl)
library(misc3d)
library(grid)
library(png)
ct1 <- antsImageRead('Desktop/CT/test/c1_0001.nii.gz')
renderSurfaceFunction(list(ct1))

renderSurfaceFunction
command actually creates a 3D model that I can click on and move around. (Here I’m using the rgl.snaphsot()
command to save pictures of the 3d model I produce as .png files.)It gets a bit more tricky when looking at a CT scan of the head.
ct2 <- antsImageRead('Desktop/CT/test/patient_001_ct.nii.gz.nii')
renderSurfaceFunction(list(ct2))

ct2seg <- kmeansSegmentation(ct2)
renderSurfaceFunction(list(ct2seg$probabilityimages[[3]]))

skull <- antsImageClone(ct2seg$probabilityimages[[3]])
skull <- iMath(skull, "GetLargestComponent")
skull <- iMath(skull, "FillHoles")
renderSurfaceFunction(list(skull),smoothsval = 2)

renderSurfaceFunction
command creates an interactive 3D model this can also be a good way of investigating an interesting case from different views.Citations
CT image - Case courtesy of Dr Dalia Ibrahim, Radiopaedia.org. From the case rID: 44049
MRI image - Case courtesy of Dr Bruno Di Muzio, Radiopaedia.org. From the case rID: 39310
Brain CT - Michael Fitzpatrick, scanhttp://hdl.handle.net/1926/426
Spinal CT scan - “The image datasets used in this experiment were from the Laboratory of Human Anatomy and Embryology, University of Brussels (ULB), Belgium”
Comments
Post a Comment