Skip to content

Masked arrays not handled by detection algorithms. #35

Description

@StefanoPierini-Codra

Problem description

Detection functions pass numpy.ma.MaskedArray directly to underlying libraries (scikit-image, OpenCV, scipy) that don't support masked arrays.

Affected functions: get_2d_peaks_coords, get_hough_circle_peaks, find_blobs_dog, find_blobs_doh, find_blobs_log, find_blobs_opencv.

Proposed solution

Partial solutions that could work in some case but not in all of them, a minimal fix would be to run the computation raising a warning that explain that the analysis is not supported ad could give unexpected results.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions