Skip to content

Mehrancd/Diaphragm_Surface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diaphragm_Surface

a project for fit a surface to cloud point of lung base as diaphragm Requrirements:

nib
tqdm
np
os
scipy.ndimage
matplotlib
skimage.measure

if you want to remove more noisy points in step 2 you may change parameters in following functions:

smoothed_data = gaussian_filter(projection, sigma=8)  # higher sigma remove more noise e.g., 4-10
contours = find_contours(smoothed_data, 0.90)         # lower percentage remove more noise  e.g, 1.0-0.8

How to use:

you need to prepare lung segmentation (hofmann is a good choice) and change input/output path in following steps:

run step1 to rougly segment diaphragm
then step2 to precise the surface points
then step3 to fit a surface to the cloud points

About

a project for fit a surface to cloud point of lung base as diaphragm

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages