Importing Landmark (mrk.json) files #1659
Replies: 2 comments 1 reply
-
Hi @amygutierrez, Thanks for opening this discussion. Please let us know, |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to import a landmarks file that contains coordinates of 3 points. This file is a mrk.json file that is exported from 3DSlicer. I am trying to make these landmarks files import similarly to how segmentation files are also imported. My directory looks like this:
where
final
contains segmentation files andlandmarks
has the landmarks mrk.json files.The segmentation import works well, and I have used the same process with the landmarks file:
https://github.com/amygutierrez/MONAILabel/blob/df6032d7b30b8b85ff13abb443b47c33047bfb5a/plugins/slicer/MONAILabelReviewer/MONAILabelReviewer.py#L1718-L1726
I have also changes the corresponding code in ImageDataController and MONAIServerREST.
ImageDataController.py
MonaiServerREST.py
I also added the appropriate file extension in data/local.py:
datasource/local.py
The download_uri for the landmarks file ends up looking like this:
The file name is123456_OSTIUM.mrk.json
For reference, the segmentation download_uri looks like this:
The file name is 123456_0000.nii.gz
The issue I'm experiencing is that the response I get from the request, I get a response of 404. In other words, this comes out as
None
requests.get(download_uri, timeout=5)
My suspicion is that the download_uri is not pointing at the correct location, or it is not configured correctly. Would appreciate any advice on what I am doing wrong.
Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions