Background foreground separation is one of the classical problem in MR domain. Magnetic Resonance Imaging (MRI) uses magnets to capture detailed images of soft tissue in the body. MRIs help diagnose or monitor treatment for:
- Tumors and cysts
- Disease of the liver, bile ducts, gallbladder, and pancreas
- Certain types of heart problems
- Pelvic pain in women such as endometriosis
- Diseases of the brain and spine
Due to radio frequency inhomogeneity (image intensity variation) segmentation is problematic, caused by inaccuracies in the magnetic resonance scanner. Tissu outside the brain, such as skin,fat and bone segmentation algorithm faced difficulty. Removeal of non-brain tissues are mandatory for successful automatic segmantation
Though ".dcm" is a common extension (and is defined in the DICOM), on physical interchange media with a DICOMDIR (like CD, DVD, BD, MOD), no file extension at all is used (due to the encoding of file references in the DICOMDIR), So expect to see, for example, "I001" rather than "I001.dcm", etc.
It is a iterative, tunable filters introduced by Perona and Malik.Gerig et al http://www.sci.utah.edu/~gerig/CS7960-S2010/materials/Perona-Malik/. used such filters to enhance MR images. These filters smooth or enhance MR images and detect edges,they might also be used for RF correction and/or intracranial boundary detection in MR images.diffusion filters can be used to enhance and detect object edges within images.
Used Nonlinear Anisotropic Diffusion Filtering follower by hysteresis thresholding to achieve the desired result. Hysteresis thresholding has consistently been able to defeat absolute thresholding.For hysteresis thresholding all we need is High and Low thresholding value. High thresholding value : mean of image after perform Nonlinear Anisotropic Diffusion Filtering Low thresholding value : std of image after perform Nonlinear Anisotropic Diffusion Filtering
- Python3.2 or higher (https://www.python.org/downloads/)
- SimpleITK ( http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/ )
pip install -r requirements.txt
- clone the repository
- run HeadMaskGenerator.py inputimage folder: sample_mri_image(DICOM) and outputimage: OutputImg (png format)
- or run M_mark1.py Input_Folder Output_Folder as a 2 argument in command line