diff --git a/README.md b/README.md index 787ab78..026da43 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,21 @@ This is an extension of [brainchop](https://github.com/neuroneural/brainchop) th 1. Open the [live demo](https://niivue.github.io/brain2print/). 2. **Option 1** The web page automatically loads with a default T1 MRI scan. If you want to use this scan, go to step 5. 3. **Option 2** If your T1 MRI scan is in NIfTI format, drag and drop the file onto the web page. -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. -5. Segment your brain scan by choosing a model from the `Segmentation Model` pull-down menu. Not all models with 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. +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://github.com/rordenlab/dcm2niix). +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. 6. Press the `Create Mesh` button and select your preferred settings: - ![settings dialog](Settings.png) - - [Closing](https://en.wikipedia.org/wiki/Closing_(morphology)) removes small crevices and cavities in your mesh which can plague printing. - - Fill bubbles will remove any cavities, this includes large cavities for example the ventricles for a brain scan. - - The `Largest cluster only` will only extract a single mesh. - - You can choose `Smoothing` to make the surfaces less jagged (note this can create self intersecting triangles that can confound some printers). - - You can choose to `Simplify` [reduce the number of triangles](https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification) to create smaller files (note this can create self intersecting triangles that can confound some printers). + - You can choose `Smoothing` to make the surfaces less jagged at the expense of computation time. + - You can choose to `Simplify` to reduce the number of triangles and create smaller files. + 7. Once you have set your preferences, press `Apply`. 8. You will see the mesh appear and can interactively view it. If you are unhappy with the result, repeat step 6 with different settings. If you want to print the results, press the `Save Mesh` button. ## How it Works -This web application uses some of the latest browser technologies that allow the tissue segmentation model to run on your local GPU, regardless of the type of GPU. This is possible via the `WebGPU` browser API. Additionally, we leverage `WebAssembly` to run the `niimath` [WASM wrapper](https://www.npmjs.com/package/@niivue/niimath) to turn the tissue segmentation into a 3D mesh. No data ever leaves your machine. +This web application uses some of the latest browser technologies that allow the tissue segmentation model to run on your local GPU, regardless of the type of GPU. This is possible via the `WebGPU` browser API. Additionally, we leverage `WebAssembly` to run the `niimath` [WASM wrapper](https://www.npmjs.com/package/@niivue/niimath) and [ITK-Wasm](https://wasm.itk.org) to turn the tissue segmentation into a 3D mesh. No data ever leaves your machine. ### Developers - Running a Local Live Demo @@ -50,5 +48,4 @@ npm run build - [brainchop](https://github.com/neuroneural/brainchop) - [niivue](https://github.com/niivue/niivue) - [niimath](https://github.com/rordenlab/niimath) - - +- [ITK-Wasm](https://github.com/InsightSoftwareConsortium/ITK-Wasm) diff --git a/Settings.png b/Settings.png old mode 100644 new mode 100755 index 41a9cf6..95f00ce Binary files a/Settings.png and b/Settings.png differ diff --git a/index.html b/index.html index ba861d2..13f8b65 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,8 @@