Skip to content

this is a preprocessing tool for transfering .dcm form to png. A voc data structure helps it to complete tooth cbct segmentation.

Notifications You must be signed in to change notification settings

liangjiubujiu/CBCT2voc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBCT2voc

This is voc format creation toolkit for .dcm data. Assuming that you have prepared your original CT data and annotations. This toolkit can realize:

  • 1. generate gray images from each .dcm data. convert_from_dicom_to_jpg() generate_gray()
  • 2. generate binary mask from annotations including draw contours and filling holes. FillHole()
  • 3. rescale the corresponding grayscale image and annotation into a fixed size.
  • 4. generate train and val data split .txt according to the input ratio. txt_generate()

run

python label.py

This command helps to create binary masks from gray masks. you will find train.txt, val.txt which are formed by voc data structure.

Application on deeplab v3+

This is an application on seantic segmentation by deeplab v3+.

About

this is a preprocessing tool for transfering .dcm form to png. A voc data structure helps it to complete tooth cbct segmentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages