suite2p icon indicating copy to clipboard operation
suite2p copied to clipboard

Scalebar on GUI

Open generalciao opened this issue 2 years ago • 0 comments

Feature request: being able to superimpose a scalebar (in micrometers or millimeters) over the main classification window would be a useful feature.

I realize that this requires some knowledge of pixel size, however suite2p's algorithms seem to operate in pixels (and consequently suite2p does not seem to care / attempt to parse any pixel size metadata). Here I'm specifically asking only about an optional GUI display feature, which could work based on a manual user input. Potential implementation:

Add menu command "Set pixel size in micrometers (current size: N/A)"; once set, the current pixel size can be displayed as text within this menu command label, and perhaps also directly in the GUI.

Add menu command: "Toggle scalebar"

The main GUI area showing the cells or non-cells would include a scalebar. Either without a label, but always at a standard size (say 50 um). Or with a label, and adjusting the size as some constant fraction of the viewport.

The scalebar should be included for any exports of the GUI (I think this export functionality exists, but haven't used it myself; typically instead I make quick screenshots of ROIs that I want to revisit later).

Perhaps someone with Python GUI development experience would find this relatively straightforward to add - unfortunately not me at the moment.

generalciao avatar May 06 '22 05:05 generalciao