google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.09k stars 296 forks source link

Skeletons with segment_properties info not loading #434

Open manoaman opened 1 year ago

manoaman commented 1 year ago

Hi @jbms ,

When I try using segment_properties for skeletons, I do see the checked labels appearing on the segmentation tab but not the actual skeletons. Before adding the segment_properties as a sub resource, skeletons loaded okay. Could I be missing something in the segment_properties json configuration (https://github.com/google/neuroglancer/blob/8432f531c4d8eb421556ec36926a29d9064c2d3c/src/neuroglancer/datasource/precomputed/skeletons.md)?

precomputed

├── 1.gz
├── 3.gz
├── 4.gz
├── 5.gz
├── 6.gz
├── info
└── segment_properties
    └── info

precomputed/info

{"@type": "neuroglancer_skeletons", "transform": [200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 1000, 0], "vertex_attributes": [{"id": "radius", "data_type": "float32", "num_components": 1}], "segment_properties": "segment_properties"}

precomputed/segment_properties/info

{"@type": "neuroglancer_segment_properties", "inline": {"ids": ["1","3","4","5","6"], "properties": [{"id": "label", "type": "label", "values": ["neuron1","neuron3","neuron4","neuron5","neuron6"] }]}}

Thank you, m

manoaman commented 1 year ago

Okay, after further investigating, skeletons were loading but those positions were far off. I took out "transform": [200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 1000, 0], and they position as expected.