SCIInstitute / shapeworks-cloud

A web version of ShapeWorks Studio
https://www.shapeworks-cloud.org/#/
Apache License 2.0
1 stars 0 forks source link

Fix segmentation data erroniously rendering as image data #386

Closed JakeWags closed 1 month ago

JakeWags commented 2 months ago

Previous behavior:

Segmentations loaded as image data, and were being rendered as such. In studio, during the data loading process, the column name is used to determine image vs shape behavior. Ex: shape_1 would render as a segmentation, whereas image_mri would render as an image.

Updated behavior: Data that doesn't have an anatomy type (aka: shape_ prefix), is now loaded into a layer Original - Image and these are rendered as image data. All others are loaded through the standard pipeline (vtk, vtp, stl) and nrrd files (segmentations) have the marching cubes algorithm run in order to render the shapes as such.