How chandana1515/medical-imaging-annotation-viewer works
This is a medical-imaging annotation viewer: users load a generated demo/MRI image or local DICOM, inspect it with zoom controls, click to place markers, and the app retrieves or persists markers through the API. The graph separates UI orchestration, image viewing, API handling, and persistence. The README documents optional PostgreSQL; unsampled deployment wiring is not mapped. The legacy annotations router is present, but the sampled main API defines its own endpoints, so no connection to that router is asserted.
Main entry points: App.tsx App workflow · Viewer.tsx Cornerstone viewer · main.py FastAPI endpoints · Toolbar.tsx Image and zoom controls
Components 15
Viewer UI
- React bootstrap
frontend/src/main.tsx - App workflow
frontend/src/App.tsx - Image and zoom controls
frontend/src/components/Toolbar.tsx - Marker list
frontend/src/components/AnnotationPanel.tsx
Image Viewing
- Cornerstone viewer
frontend/src/components/Viewer.tsx - Demo image generation
frontend/src/components/Viewer.tsx - DICOM loading
frontend/src/components/Viewer.tsx
Annotation API
- FastAPI endpoints
backend/app/main.py
Persistence
- Annotation ORM model
backend/app/models.py - Database sessions
backend/app/database.py - Annotation database
backend/annotations.db
Other components
- Viewer user
- Cornerstone runtime
- Local DICOM file
- PostgreSQL option
Connections 19
- Viewer user → App workflow: uses
README.md - React bootstrap → App workflow: renders
frontend/src/main.tsx - App workflow → Image and zoom controls: renders
frontend/src/App.tsx - App workflow → Marker list: renders
frontend/src/App.tsx - App workflow → Cornerstone viewer: renders
frontend/src/App.tsx - Image and zoom controls → App workflow: dispatches actions
frontend/src/App.tsx - Viewer user → Local DICOM file: selects
README.md - Local DICOM file → App workflow: provides file
frontend/src/App.tsx - App workflow → Cornerstone viewer: sets image and zoom
frontend/src/App.tsx - Cornerstone viewer → Demo image generation: loads demo
frontend/src/components/Viewer.tsx - Cornerstone viewer → DICOM loading: registers loader
frontend/src/components/Viewer.tsx - Cornerstone viewer → Cornerstone runtime: renders image
frontend/src/components/Viewer.tsx - Cornerstone viewer → App workflow: submits marker
frontend/src/App.tsx - App workflow → FastAPI endpoints: requests annotations
frontend/src/App.tsx - FastAPI endpoints → Annotation ORM model: maps records
backend/app/main.py - FastAPI endpoints → Database sessions: opens session
backend/app/main.py - Database sessions → Annotation database: connects
backend/app/database.py - Viewer user → Cornerstone viewer: clicks to annotate
README.md - FastAPI endpoints → PostgreSQL option: can configure
README.md