{"id":18995123,"url":"https://github.com/fitushar/brain-tissue-segmentation-using-expectation-maximization","last_synced_at":"2026-06-30T10:31:52.681Z","repository":{"id":109982468,"uuid":"157094409","full_name":"fitushar/Brain-Tissue-Segmentation-Using-Expectation-Maximization","owner":"fitushar","description":"Medical Image Segmentation and Applications (MISA) LAB task.","archived":false,"fork":false,"pushed_at":"2019-01-12T22:41:47.000Z","size":17795,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T11:55:34.495Z","etag":null,"topics":["brain-tissue-segmentation","dice","expectation-maximization","lab-task","labtasks","misa","seg","slice"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitushar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-11T15:43:23.000Z","updated_at":"2022-09-27T20:48:04.000Z","dependencies_parsed_at":"2023-03-16T04:30:59.547Z","dependency_job_id":null,"html_url":"https://github.com/fitushar/Brain-Tissue-Segmentation-Using-Expectation-Maximization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fitushar/Brain-Tissue-Segmentation-Using-Expectation-Maximization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitushar%2FBrain-Tissue-Segmentation-Using-Expectation-Maximization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitushar%2FBrain-Tissue-Segmentation-Using-Expectation-Maximization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitushar%2FBrain-Tissue-Segmentation-Using-Expectation-Maximization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitushar%2FBrain-Tissue-Segmentation-Using-Expectation-Maximization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitushar","download_url":"https://codeload.github.com/fitushar/Brain-Tissue-Segmentation-Using-Expectation-Maximization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitushar%2FBrain-Tissue-Segmentation-Using-Expectation-Maximization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34963633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brain-tissue-segmentation","dice","expectation-maximization","lab-task","labtasks","misa","seg","slice"],"created_at":"2024-11-08T17:28:34.349Z","updated_at":"2026-06-30T10:31:52.662Z","avatar_url":"https://github.com/fitushar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brain-Tissue-Segmentation-Using-Expectation-Maximization\nMedical Image Segmentation and Applications (MISA) LAB task.\n\nFunctions Used in two codes::\n\n1. show_slice(img, slice_no):\n    \n    Inputs: Name of the Image Array, img=name.get_fdata()\n            Slice number you want to knoe,Slice no = 24\n    output: Plot Image.\n2. gmm(x, mean, cov):\n    \n    Inputs:\n        x (numpy.ndarray): nxd dimentional array. where n= number of samples\n                                                        d= dimention\n        mean (numpy.ndarray): d-dimentional mean value.\n        cov (numpy.ndarray): dxd dimentional covariance matrix.\n    \n    output:\n        (numpy.ndarray): Gaussian mixture for every point in feature space.\n        \n3. dice_similarity(Seg_img, GT_img,state):\n     \n     Inputs:\n        Seg_img (numpy.ndarray): Segmented Image.\n        GT_img (numpy.ndarray): Ground Truth Image.\n        State: \"nifti\" if the images are nifti file\n               \"arr\"   if the images are an ndarray\n    \n      output:\n        Dice Similarity Coefficient: dice_CSF, dice_GM, dice_WM.\n        \n4. Dice_and_Visualization_of_one_slice(Seg_img, GT_img,state,number_of_slice):\n    \"\"\"Example Use: Dice_and_Visualization_of_one_slice(Seg,Label_img,\"arr\",30)\"\"\"\n         \n     Inputs:\n        Seg_img (numpy.ndarray): Segmented Image.\n        GT_img (numpy.ndarray): Ground Truth Image.\n        State: \"nifti\" if the images are nifti file\n               \"arr\"   if the images are an ndarray\n    output:\n        Dice Similarity Coefficient: dice_CSF, dice_GM, dice_WM.\n        Ploting image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitushar%2Fbrain-tissue-segmentation-using-expectation-maximization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitushar%2Fbrain-tissue-segmentation-using-expectation-maximization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitushar%2Fbrain-tissue-segmentation-using-expectation-maximization/lists"}