https://github.com/rasmusrpaulsen/qtvtkdicomviewer
A minimal example of a DICOM viewer using VTK and Qt
https://github.com/rasmusrpaulsen/qtvtkdicomviewer
Last synced: 6 months ago
JSON representation
A minimal example of a DICOM viewer using VTK and Qt
- Host: GitHub
- URL: https://github.com/rasmusrpaulsen/qtvtkdicomviewer
- Owner: RasmusRPaulsen
- Created: 2022-09-03T21:48:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T22:22:00.000Z (about 3 years ago)
- Last Synced: 2025-02-04T16:50:00.999Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QtVTKDICOMViewer
A minimal example of a DICOM viewer using VTK and Qt## Use
Start by selecting the directory containing the DICOM files.- The up/down keys can be used to scroll through the DICOM files.
- Zoom is done with the mouse wheel or right-mouse button plus mouse move.
- The brightness and contrast (window levels) can be changed with left-mouse button plus mouse moveIt is based on the (https://vtk.org/doc/nightly/html/classvtkImageViewer2.html) class so some functionally from that class is also active.
## Dependencies
The program has been tested with PyQt5 and VTK9## Known issues
The DICOM is read by the vtk DICOM reader that has known issues with compressed DICOM files. To make this viewer more robust, it should probably be based on PyDICOM. But the goal was to keep it as simple as possible.## Author
Rasmus R. Paulsen. DTU Compute. 2022.(Based on other example code)