How selvakarna/dicomviewer works
This is a small script for loading DICOM image slices and displaying them as a 3D contour. Its workflow discovers matching files in a hard-coded directory, reads and collects each pixel array, converts the collected slices to a NumPy array, and passes that array to Mayavi for visualization. The source shows no user interface or saved output. Although OpenCV and Nilearn are imported, the excerpt shows no runtime use of them.
Main entry points: dcmtest.py Decode and stack
Components 8
Other components
- DICOM files
- File discovery
dcmtest.py - Decode and stack
dcmtest.py - pydicom reader
- NumPy array
- 3D contour
dcmtest.py - Mayavi display
- Image viewer
Connections 7
- DICOM files → File discovery: matches pattern
dcmtest.py - File discovery → Decode and stack: passes files
dcmtest.py - Decode and stack → pydicom reader: reads slices
dcmtest.py - Decode and stack → NumPy array: converts stack
dcmtest.py - Decode and stack → 3D contour: provides array
dcmtest.py - 3D contour → Mayavi display: creates contour
dcmtest.py - 3D contour → Image viewer: shows result
dcmtest.py