Web/App based DICOM RT Viewer
RT Viewer
PreKnowledge
1) Coordinate transformation
We can get two matrices.
1-1) Dose - > Patient matrix
1-2) CT -> Patient matrix
In other words, to convert coordinates to Dose -> CT, Dose -> Patient -> CT is required.
-> To obtain -> Patient -> CT, CT -> Patient matrix must be inverse.
-> Dose2CT transformation matrix = (Dose 2Patient) * (Patinet2CT)
-> Dose2CT * (x, y, z, 1) converts the coordinates (x, y, z).
-> 1 is the vector and 0 is the point.
-> See c7.6.2.1.1 of DICOM standard for more information.
(requires knowledge of the transform or scaling side of a three-dimensional matrix)
2) Obtain Dose Value <br>-> RT DOSE pixelData(x7fe00010) <br>-> RT DOSE Dose Grid Scaling (x3004000e) <br>-> DOSE Value = pixelData * DoseGridScaling
3) Import Sub-Data in DICOM file <br>-> Original : DB import & use Class <br>-> Present : cornerstone.js (GitHub) - > dicomParser -> liveExample -> DICOM DUMP <br>-> https://rawgit.com/cornerstonejs/dicomParser/master/examples/index.html <br>-> click F12 & show developer tool <br>-> We analyzed this source and imported the data in the hierarchy. <br>-> In Project, Referenced Code Like getROIList -> structFile , ROIListHierarchy , getContourData <br> (Output to output shows hierarchical)
4) Cornerstone <br>-> Github : https://github.com/cornerstonejs <br>-> Example : https://cornerstonejs.org/
5) Zoom, pan event <br>-> Use React-map-Interaction opensource <br>-> After, Divided mouse event
6) Open Source <br>-> Dcmjs : DICOM parser library like cornerstone <br>-> Mathjs : Can be used like python for matrix operations <br>-> Jsdoc : Documentation Tool
7) Document <br>-> Word : WebViewer_API_document <br>-> JSDOC API documentation (Recommended) <br>: Easier to see when Developing
Environment setting
1) Window
2) Webstorm
3) Node.js
- Version :12.18.3
4) Package Manager
1) yarn
- version : 1.22.5
2) npm
- version : 6.14.6
To install at once
-> npm install or yarn install
Use JSDOC Install : npm install jsdoc template : docdash Update : npm run jsdoc
In package.json
“scripts”: {
“jsdoc”: “jsdoc -c jsdoc.json”
}
How to open API docs?
-> ‘./API_document/index.html’
-> open this use web browser
In the project directory, you can run:
npm run start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
yarn deploy
Deploy the project on your github page (Your Repository will be public)
npm install gh-pages
In package.json
“scripts”: {
“build”: “react-scripts build”,
“deploy”: “gh-pages -d build”
}
“devDependencies”: {
“gh-pages”: “^3.1.0”
}, “homepage”: “https://choijinkyung.github.io/RT-VIEWER/”
npm run jsdoc
Each code can be annotated into jsdoc. Running this script updates.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
CONTRIBUTING.md 를 읽고 이에 맞추어 pull request 를 해주세요.
This project is licensed under the MIT License - see the [LICENSE.md]
Copyright (c) 2020 j_iky
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.