Skip to content

Blobdetector yields incorrect results #2075

@shachafl

Description

@shachafl

Description

Issue discovered by Leo Juhlin when running the example code for howto-spotfindingresults
"y-values of detected spots, shown in y-column all being 0, and the radius of the detected spots being extremely large."
This is an index shift error that was missed in #2064 and can be easily fixed.
Unfortunately, the fix brings us back to an old issue #1870 of running blobdetector without reference and is_volume=False, because the (X,Y) tile is now missing the z-axis which leads to IndexError: index 3 is out of bounds for axis 1 with size 3

This is also related to #1985

Steps/Code to Reproduce

Run the jupyter notebook and add the line:
spots[{Axes.CH:1, Axes.ROUND:0}].spot_attrs.data

Expected Results

Image

Actual Results

Image

Versions

Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.39
Python 3.9.22 (main, May 7 2025, 10:28:35)
[GCC 13.3.0]
NumPy 1.26.4
SciPy 1.13.1
scikit-image 0.24.0
pandas 2.2.3
sklearn 1.6.1
xarray 2023.8.0
sympy 1.14.0
starfish 0.3.3

Metadata

Metadata

Labels

bugAn issue with an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions