google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.03k stars 288 forks source link

Spatial selection of object groups #302

Open stuarteberg opened 3 years ago

stuarteberg commented 3 years ago

It's sometimes useful to simultaneously select many objects which densely a pack a particular region of the 2D view. The specific case I'm thinking of is bundle tracts. Here's an example. But I can think of other use-cases, too.

Currently, the only way to select many objects like that is to double-click on each one individually. (Is that correct?) It would be wonderful if there were some way to select many objects via a "lasso" tool or something similar. Even a minimal version that supports only rectangular selections (instead of arbitrary closed loops) would still be quite valuable.

Heck, perhaps the simplest thing to implement would be a button in the segmentation selection panel named "select all in frame", which selects every segment which is currently visible in the 2D viewer(s). Then no special cursor behavior is needed; I can just zoom and pan as needed to add objects to my selected set. It's simple, but it would be a huge time-saver in specific use-cases. (If a mouse-based solution might be tricky, then I don't want to disregard a simple solution that would still provide 95% of the value.)

For the use-cases I have in mind, it might be desirable to select dozens, hundreds, or even (sometimes) thousands of objects at once. For example, here's a much larger bundle tract than my example above. Selecting all of those neurons individually would require a lot of double-clicking!

image
eichlerkathi commented 3 years ago

Just here to second this issue. This would add massive value for me as a heavy user of neuroglancer!