How to strip skull in 2D CT scans dicom file by python ?

Hello.

I’ve installed itk-skullstripping by using pip install itk-skullstripping.

However. I have no idea the methods to use this package to strip skull in python.

My file is 2D CT scans and in the format of dicom.

You help is appreciated in advance.

Skull stripping usually refers to removing everything outside the brain in MRI images. Probably itk-skullstripping performs this operation. In CT images the problem is completely different, much easier, as the skull can be segmented by simple global thresholding.

You can find a fully automatic method (you need to run automatic steps, which can be easilty automated) for 3D. The problem is harder to implement in 2D and CT image acquisitions are very rarely limited to a single slice, but if needed then you could develop a similar method (segment the skull, close the gaps, and extract the largest cavity).