perklab / sliceropenanatomy Goto Github PK
View Code? Open in Web Editor NEW3D Slicer extension for exporting Slicer scenes to use in the OpenAnatomy.org browser
3D Slicer extension for exporting Slicer scenes to use in the OpenAnatomy.org browser
Add feature to enable hierarchical organization of segments.
Design: vtkSegment::Tags can contain the grouping information: "hierarchy" tag would contain full path of the segment (e.g., "/brain/rhomboencephalon/metencephalon/cerebellum"). Tag name would identify hierarchy; there could be multiple tags that the user can choose from (e.g., spatial, functional, โฆ)
Cross-reference:
https://issues.slicer.org/view.php?id=4402
Reason: table view and segment selector widget make lots of populate calls (set opacities as well)
Solution: Below MRML level, so StartModify/EndModify cannot be used, but a simple flag may be used
We need to save segment hierarchy and terminology information for segmentations. Probably the best way to do it is to create a .json sidecar file. Format and content of this file is not yet specified.
Colors appear to be lighter, somewhat washed out in glTF viewers - see
https://discourse.slicer.org/t/open-anatomy-export-and-3dviewer-net-with-url/26726/12?u=lassoan
Transforms applied to modelNodes should not be ignored while exporting
Would it make sense to check the displayNode visibility of the to-be-exported nodes (i.e. not do it if the visibility is False)?
By not allocating the whole segmentation when saving or loading, but instead we stream the data, we can prevent memory overflow when allocating the huge 4D volume.
In order to label the existing atlases in Slicer properly, we need a way to assign standard terminologies to models in a hierarchy. Instead of fixing the current model hierarchy (which is quite buggy and that's part of the reason SH is not based on the original MRML scene model), we can achieve this within subject hierarchy:
Is there a way to export markup points with the .ghlt models? We in the CAVFB (http://200.17.71.18/) would like to use this feature to add topographic descriptions to the bone models we present online.
Thanks in advance, best regards,
It would be nice if planes could be exported as they usually used in surgical planning to mark surgical margins
It would contain models and volumes. Since 3D textures are not supported in gltf yet, we'll first work on models only. Volumes will be saved as nrrd.
Hierarchy information would be stored externally.
The boxes models are not exported with reduction factor = 0.8 because they only have 24 points
Exporting...
Writing BoneReconstructionPlanner...
Writing Segmentation Models...
Model 1/35: Fibula
Model 2/35: decimatedFibula
Model 3/35: Mandible
Model 4/35: decimatedMandible
Writing Mandible reconstruction...
Writing Plane Cuts...
Writing Cut Bones...
Model 5/35: Fibula Segment 0A-0B
Model 6/35: Fibula Segment 1A-1B
Model 7/35: Fibula Segment 2A-2B
Model 8/35: Resected mandible
Writing Mandible2Fibula transforms...
Writing Bone Pieces Transforms...
Writing Transformed Fibula Pieces...
Model 9/35: Transformed Fibula Segment 0A-0B_4
Model 10/35: Transformed Fibula Segment 1A-1B_4
Model 11/35: Transformed Fibula Segment 2A-2B_4
Writing miterBoxes Models...
Model 12/35: miterBox0_A
Warning: empty model, not exported.
Model 13/35: miterBox0_B
Warning: empty model, not exported.
Model 14/35: miterBox1_A
Warning: empty model, not exported.
Model 15/35: miterBox1_B
Warning: empty model, not exported.
Model 16/35: miterBox2_A
Warning: empty model, not exported.
Model 17/35: miterBox2_B
Warning: empty model, not exported.
Writing biggerMiterBoxes Models...
Model 18/35: biggerMiterBox0_A
Warning: empty model, not exported.
Model 19/35: biggerMiterBox0_B
Warning: empty model, not exported.
Model 20/35: biggerMiterBox1_A
Warning: empty model, not exported.
Model 21/35: biggerMiterBox1_B
Warning: empty model, not exported.
Model 22/35: biggerMiterBox2_A
Warning: empty model, not exported.
Model 23/35: biggerMiterBox2_B
Warning: empty model, not exported.
Writing Fibula planes...
Writing Fibula Segments Lengths...
Writing Inverse mandible reconstruction...
Writing Inverse Plane Cuts...
Writing Inverse Append...
Writing Cut Mandible Pieces...
Model 24/35: Mandible Segment 0
Model 25/35: Mandible Segment 1
Model 26/35: Mandible Segment 2
Writing Full Mandibles...
Model 27/35: Mandible 0
Model 28/35: Mandible 1
Model 29/35: Mandible 2
Writing Transformed Mandible Pieces...
Model 30/35: Transformed Mandible Segment 0_4
Model 31/35: Transformed Mandible Segment 1_4
Model 32/35: Transformed Mandible Segment 2_4
Writing Transformed Full Mandible...
Model 33/35: Transformed Mandible 0_4
Model 34/35: Transformed Mandible 1_4
Model 35/35: Transformed Mandible 2_4
Writing Mandibular planes...
Writing file /home/BoneReconstructionPlanner.gltf...
Export successful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.