Skip to content

Commit 9865577

Browse files
authored
Merge pull request #3 from niivue/hollow
Hollow
2 parents 868622f + 1ca1df7 commit 9865577

File tree

7 files changed

+704
-384
lines changed

7 files changed

+704
-384
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This is an extension of [brainchop](https://github.com/neuroneural/brainchop) th
1212
4. **Option 3** If your image is in DICOM format, it may load if you drag and drop the files. If this fails, convert your images with [dcm2niix](https://niivue.github.io/niivue-dcm2niix/) and save the result as a NIfTI format file that brain2print can open.
1313
5. Segment your brain scan by choosing a model from the `Segmentation Model` pull-down menu. Not all models work with all graphics cards. The `Tissue GWM (High Acc, Low Mem)` is a good starting point. Hopefully, it will accurately segment your brain into gray matter, white matter and cerebral spinal fluid.
1414
6. Press the `Create Mesh` button and select your preferred settings:
15-
- ![settings dialog](Settings.png)
15+
- ![settings dialog](preferences.png)
16+
- The `Hollow` option allows you to choose between a solid object or a surface shell (which uses less material to print).
1617
- You can choose `Smoothing` to make the surfaces less jagged at the expense of computation time.
1718
- You can choose to `Simplify` to reduce the number of triangles and create smaller files.
1819
7. Once you have set your preferences, press `Apply`.
@@ -42,6 +43,7 @@ npm run build
4243

4344
This web page combines three packages developed by our team:
4445

45-
- [brainchop](https://github.com/neuroneural/brainchop) AI models for tissue segmentation.
46-
- [niivue](https://github.com/niivue/niivue) reading images and visualization
47-
- [ITK-Wasm](https://github.com/InsightSoftwareConsortium/ITK-Wasm) for voxel-to-mesh and mesh processing
46+
- [brainchop](https://github.com/neuroneural/brainchop) AI models for tissue segmentation. [Citation](https://pubmed.ncbi.nlm.nih.gov/39301517/).
47+
- [niimath](https://github.com/rordenlab/niimath) for creating hollow objects. [Citation](https://pubmed.ncbi.nlm.nih.gov/39268148/).
48+
- [niivue](https://github.com/niivue/niivue) reading images and visualization.
49+
- [ITK-Wasm](https://github.com/InsightSoftwareConsortium/ITK-Wasm) for voxel-to-mesh and mesh processing. [Citation](https://proceedings.scipy.org/articles/TCFJ5130.

Settings.png

-11.2 KB
Binary file not shown.

index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@
6565
</footer>
6666
<dialog id="remeshDialog">
6767
<form method="dialog">
68+
<p>
69+
<label>
70+
Hollow:
71+
<select id="hollowSelect" title="hollow meshes require less material but may be fragile">
72+
<option value="0" selected>False: solid</option>
73+
<option value="-1">1mm</option>
74+
<option value="-2">2mm</option>
75+
<option value="-4">4mm</option>
76+
<option value="-8">8mm</option>
77+
<option value="-16">16mm</option>
78+
</select>
79+
</label>
80+
</p>
6881
<p>
6982
<label for="smoothSlide">Smoothing</label>
7083
<input
@@ -79,7 +92,7 @@
7992
</p>
8093
<p>
8194
<label>Simplify Percent (10..150)</label>
82-
<input title="triangle reduction reduces the file size and computation time but can reduce mesh quality, smaller values result in a smaller mesh" id="shrinkPct" type="number" min="10" value="75" max="150">
95+
<input title="triangle reduction reduces the file size and computation time but can reduce mesh quality, smaller values result in a smaller mesh" id="shrinkPct" type="number" min="10" value="25" max="150">
8396
</p>
8497
<button id="cancelBtn" formmethod="dialog">Cancel</button>
8598
<button autofocus id="applyBtn" value="default">Apply</button>

0 commit comments

Comments
 (0)