deface

Remove facial features from a brain MRI for anonymization — entirely in your browser. No data is sent to any server.

Defacing runs niimath, which registers a bundled MNI template (affine, BSD) and zeros the face voxels:

Visualization uses NiiVue; DICOM import uses dcm2niix.

Defacing uses the BSD-2 build of niimath compiled to WebAssembly and bundled with this app, so it is licensed BSD-2-Clause · thread-deterministic registration, fails closed on out-of-memory. Brain extraction uses @brainchop/mindgrab (MIT). Requires a browser with WebGPU (recent desktop Chrome, Edge, or Safari).

MindGrab can't run here

The mindgrab brain-extraction method runs a neural network in the browser. It uses WebGPU where that is available, falls back to WebGL2, and none of them can start on this browser.

Use an allineate method instead — they run in WebAssembly and need no GPU.