neuropoly / gitea

https://gitea.io fork with https://git-annex.branchable.com support
https://gitea.io
MIT License
3 stars 2 forks source link

`cornerstone` + `git-annex` #24

Open kousu opened 1 year ago

kousu commented 1 year ago

This combines the two stated branches, to make a version that's more useful for "neurogitea".

kousu commented 1 year ago

The hard part was sorting out that I have to use the "legacy" Cornerstone and then just writing this demo, but with that knowledge in hand I got this working immediately.

First draft screenshots

annexed ![Screenshot 2022-11-27 at 03-53-25 lfs-test](https://user-images.githubusercontent.com/987487/204143570-9eff7d96-cf10-48f8-bd23-c900a9b38200.png)
unannexed ![Screenshot 2022-11-27 at 10-15-01 lfs-test](https://user-images.githubusercontent.com/987487/204143572-92f64761-e564-4d6e-9c34-c1948be88801.png)

Relationship to #1

Note that this feature doesn't need git-annex. Due to #22 (+ #20), if used on an annexed file, $.RawFileLink will be filled with a working link when the template renders, but that's only a loose coupling and all the code here works independently -- which you can see in the 'unannexed' screenshot.

So as much of a pain as it is, I think we should maintain this as a separate branch from #1.

kousu commented 1 year ago

Second draft

annexed (and in `LANG=ml-IN`) ![Screenshot 2022-11-27 at 11-23-27 lfs-test](https://user-images.githubusercontent.com/987487/204146511-f6253098-1d1b-4c7a-b07f-74cf681323b0.png)
unannexed (and in `LANG=fr_FR`) ![Screenshot 2022-11-27 at 11-22-38 lfs-test](https://user-images.githubusercontent.com/987487/204146520-3f00b808-2027-4fa4-a4b0-9c15ac6ea538.png)
kousu commented 1 year ago

TODO:

kousu commented 1 year ago

DICOMs :tada:

I've read enough examples to figure out how to patch in the DICOM loader.

I grabbed some of the dicoms off the wado-image-loader demo, out of https://github.com/cornerstonejs/cornerstoneWADOImageLoader/tree/master/testImages, and demoed them:

annexed ![Screenshot 2022-11-29 at 19-59-43 test](https://user-images.githubusercontent.com/987487/204681888-7252117e-cfe8-4c35-af81-3c9c5ca61114.png)
unannexed ![Screenshot 2022-11-29 at 19-59-54 test](https://user-images.githubusercontent.com/987487/204681899-a18742ba-78b1-40f5-9d24-4cdfbdef6d10.png)