QI2lab / napari-spot-detection

Detect diffraction limited spots in 2D and 3D, in standard or skewed microscopy images.
GNU General Public License v3.0
3 stars 0 forks source link

scale can't be set via GUI #1

Closed AlexCoul closed 1 year ago

AlexCoul commented 1 year ago

In script the image scale is set programmatically, and the plugin uses the scale of the existing layer, set in the script, to display correctly new data. After a drag and drop of an image there is no scale, so data is not displayed correctly.
TODO: add a button to set the scale

AlexCoul commented 1 year ago

@dpshepherd we can actually use the physical parameters dc and dstage, defined at the very top of the plugin, to set the scale for new images from drag-and-drop and new layers from successive steps.

AlexCoul commented 1 year ago

I think it works, after a drag-and-drop and loading the SPOTS3D model I have the message "Changing image scale from [1. 1. 1.] to [0.4 0.115 0.115]", and the layer's scale clearly changes. I'm pushing these changes.