FNNDSC / FNNDSC/ami

How to export bones of a dicom set (for example in .obj) in AMI.js?

Open
#391 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
745
Forks
212
PR merge metrics
No merged PRs in 30d

Description

### Description
I want to load some DICOM files and export the bones of that files or at least the volume. I already load the DICOM files and get the quadview and the volume Rendering, but I want to export the bones of that files.

When I export to .obj I get the box which is the content of the volume but I want to export the content inside.

#### Steps to Reproduce

1. Load DICOM data
![image](https://user-images.githubusercontent.com/17741571/63839964-81ab6100-c980-11e9-8902-e175756f89c7.png)

2. I Load the volume using vrHelper = new AMI.VolumeRenderingHelper(stack);
![image](https://user-images.githubusercontent.com/17741571/63840060-af90a580-c980-11e9-8930-0cb36771b381.png)

3. I export it using OBJExporter and passing the scene which contains the volume, i also tried to pass the mesh ( let exporter = new THREE.OBJExporter(); let obj = exporter.parse(mesh);)
![image](https://user-images.githubusercontent.com/17741571/63840303-1e6dfe80-c981-11e9-84dd-b2a521bf5899.png)

#### Expected Results
What I would really like is to export the bones and then slice it get only a part of that, for example get only the clavicle.
I would like to export this:
![image](https://user-images.githubusercontent.com/17741571/63840565-93d9cf00-c981-11e9-98d7-cac6efb42a70.png)

#### Actual Results
But I am only be able to export an empty box

This is the mesh that I am exporting which has 12 faces and 8 vertices and it has geometry: BoxGeometry, I Know that this is wrong but I don´t Know how to get the real mesh
![image](https://user-images.githubusercontent.com/17741571/63841009-4c077780-c982-11e9-8f37-cd662894c4b0.png)

I tried to create a labelmap using threshold and get only bones and then create a mesh from that labelmap but I wasn't able to do that.

Thank you very much.

### Browsers Affected
- [X] All
- [ ] Chrome
- [ ] Firefox
- [ ] Edge
- [ ] Safari 9
- [ ] Safari 8
- [ ] IE 11

### Versions
- AMI: v.0.32.0
- THREEJS: v.1.0.7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.