Skip to content

mrinal054/generate_3d_volume_from_DICOM_images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

3D volume generation from DICOM images

This code describes different ways of reading DICOM images.

Using 'ImagePositionPatient' attribute

  • Function get_dcm reads dicom files from a directory

  • It first checks if the DICOM images have ImagePositionPatient attribute. If it has, it stores slices according to the ImagePositionPatient. Otherwise, it sorts by name.

  • Input parameter: dcm_path: location of dcm data

  • Output: Returns -
    dcm_data: dicom data in a single array
    pix_spacing: spacing of pixel/voxel
    intensity: min and max intensity

Using 'SliceLocation' attribute

  • Function get_dcm reads dicom files from a directory

  • It first checks if the DICOM images have SliceLocation attribute. If it has, it stores slices according to the SliceLocation. Otherwise, it sorts by name.

  • Input parameter: dcm_path: location of dcm data

  • Output: Returns -
    dcm_data: dicom data in a single array
    pix_spacing: spacing of pixel/voxel
    intensity: min and max intensity

Author @ Mrinal Kanti Dhar

Requirements

  • numpy
  • pydicom

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published