I've been investigating a way to render a DICOM file in Javascript in such a way that I can later threshold it, for example, to isolate the bones in a scan, and then export that as a mesh (.obj, .stl, .ply, etc.), similar to what it's possible to do on 3D Slicer.
For what I gather there aren't any libraries in JS that do exaclty that, but I've seen that XTK can do a nice job doing a volumetric rendering.
I'd like to know if the X.volume object could be used to extract the thresolded voxel data and then apply an algorithm (such as Marching Squares) to make a 3D mesh.
Or maybe I need to refocus the problem and try to gather the voxel data direclty from the DICOM stack?
Any help in this is grealty appreciated.