Comments (7)
Hi Deepa!
Thanks for your suggestion! I was not able to quickly find a way to directly save nii files. I see the script you attached also uses an intermediate file "-label.nrrd". Do you know if there is a way to directly save niftys?
from segmentationreview.
Hi Anna,
So I believe that slicer.util.saveNode works for both nrrd and nii.gz, so instead of:
filepath = outputPath + "/" + referenceVolumeNode.GetName() + "-label.nrrd"
You can instead do:
filepath = outputPath + "/" + referenceVolumeNode.GetName() + "-label.nii.gz"
from segmentationreview.
Yeah so that does not work, I have tried it awhile ago and just now, here is the log:
[Python] Failed to save node to file
[Python] Error: No writer found to write file .nii.gz of type SegmentationFile.
from segmentationreview.
Is there a functional reason why you convert the nrrd/save the nifti? Why not just save the segmentations as .seg.nrrd? I can think of a few benefits of using .seg.nrrd instead of nifti, such as preserving header/metadata, segmentation color
from segmentationreview.
Good point, the only reason I can think of is the consistency between input and output. Also, nifty also saves headers with metadata (not the color tho)
from segmentationreview.
The inputs can be .nrrd files too (with the new mappings feature). Personally, I think the extension would benefit from saving the segmentations as .seg.nrrd. If nothing else, saves the overhead of re-saving the segmentations as niftis.
from segmentationreview.
i have removed the t.seg.nrrd in the latest commit, saving only nifty files.
from segmentationreview.
Related Issues (8)
- small improvements HOT 1
- possibility to edit/review again HOT 1
- Add Segmentation editor tools HOT 1
- Clean up/reset environment after finishing reviewing each directory HOT 2
- mappings file not updating for consecutive directories HOT 1
- Ordering the cases based on stats like segmentation volume HOT 1
- Multi-label segmentation masks - make the visibility toggle persistent throughout cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentationreview.