google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.08k stars 295 forks source link

Any way to hide point annotations outside of current viewed section? #657

Closed andythai closed 1 hour ago

andythai commented 2 hours ago

I currently have some image sections making up a volume, each section has a corresponding set of point annotations in an annotation layer. However, when I view the annotations, almost all of the point annotations are shown in the visualization (e.g. when looking at section 200, Neuroglancer shows point annotations from section 150-250). Points that are farther away from the current section seem to have a lower opacity, and zooming in seems to make this more so.

Image

Is there a way to hide point annotations whose positions do not match the current section (such that section x only shows point annotations in section x)?

jbms commented 2 hours ago

You can adjust the depth range for annotations with alt+mousewheel.

andythai commented 1 hour ago

Ah, thank you! I see you can also set this value as "crossSectionDepth" in the JSON file as well.