This repository contains the reference implementation for my paper MEANINGFUL LEVEL SETS FOR SMALL SPOT DETECTION, accepted at the 2026 IEEE International Conference on Image Processing (ICIP).
License
This project is distributed under the MIT License (see LICENSE).
It also bundles third-party code with its own licenses; see THIRD_PARTY_NOTICES.md.
Warning
This repository is still a WIP and some changes may be made (method signature, etc) before the paper is presented at ICIP.
Building and installing locally
The project exposes a single normal entry point for local development: the repository-root setup.py.
The actual compiler logic lives in src/setup_no_maxtree.py and src/setup.py; the root script is only a dispatcher.
The code is implemented in C++. As described in the paper, two variants are implemented:
These files contain the local level set search variant:
- bitarray.hpp
- maxpool.cpp
- maxpool.hpp
- meaningful_ll.cpp
- meaningful_ll.hpp
- spot_detector.cpp
- spot_detector.hpp
These files contain the implementation based on a Max-Tree:
- maxpool.cpp
- maxpool.hpp
- spot_detector_maxtree.cpp
- spot_detector_maxtree.hpp
The latter requires Pylene (which is included in externals) and is harder to build (Pylene adds dependencies). Both require builds xsimd, which is a header-only library and which is included in externals as well.
Local installation
For most users, the default minimal install is the easiest path:
python -m pip install -e .
This uses the repository-root setup.py, which defaults to the minimal build (MEANINGFUL_SPOT_BUILD=minimal). It compiles only the local level-set implementation and avoids the heavier Max-Tree dependency chain.
If you want the full Max-Tree implementation, set the build selector explicitly:
MEANINGFUL_SPOT_BUILD=full python -m pip install -e .
This keeps the native C++ dependencies managed automatically by Conan during the build, so users are not expected to install system libraries manually.
The full build intentionally excludes Pylene image file I/O sources and the related codec stack, because the detector does not use image loading at runtime.
For a direct in-place build without installing as an editable package:
python setup.py build_ext --inplace
or, for the full build:
MEANINGFUL_SPOT_BUILD=full python setup.py build_ext --inplace
The pyproject.toml file contains the project metadata and build-system requirements. The src/setup_no_maxtree.py and src/setup.py files are the actual compile scripts. In normal use, users should rely on the repository-root setup.py and the MEANINGFUL_SPOT_BUILD environment variable rather than invoking the src scripts by hand.
Reproducing the paper
The publication includes comparisons on various datasets against other methods. The related code will be contained in a separate repository at a later date.
Testing
Both the Max-Tree and the local level set search implementations provide the same results. However
the Max-Tree implementation should be faster when allowing large spots (large n_elems), or when
having a scene with very dense detections. The local level set search variant should be faster when
few detections are expected and n_elems is small.
See spot_detector_cpp.pyi for the documentation of available methods.
For instance, one use would be:
my_detected_boxes = detect_spots_as_boxes(my_image, noise_level=sigma)
Metadata
Release files for meaningful-spot-detector 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meaningful_spot_detector-1.0.0.tar.gz | 226.3 kB | Without provenance | Details for meaningful_spot_detector-1.0.0.tar.gz |
Built distributions (wheels)
Total release size: 42.4 MB
Release files / meaningful_spot_detector-1.0.0.tar.gz
| Download URL | meaningful_spot_detector-1.0.0.tar.gz |
|---|---|
| Size | 226.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58abd037b096ef78cfaa51a3fd953d5eb38b6c5ac60266fb9a7d6b8999e7b3a4
|
|
BLAKE2b-256 checksum How to use checksums |
f9461d4b0836fd96b8dc1a6bbff28a226d93cb3cabe0597ace56ea56c64d6d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314t-win_amd64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 362.9 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a65c7379bb0c4e15604887da5e8053eafcfd084aa92292dfd3920dfd26bd9bfa
|
|
BLAKE2b-256 checksum How to use checksums |
cd06c09ee324e41c53288d91f49f9c28392d1b90a8ee64ddea575621ebe03deb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fb7a7aaa91e7e9ac5b1a29a02438c19cd6d42b3326039f635a0f2eff26f0a711
|
|
BLAKE2b-256 checksum How to use checksums |
4b3b0f5152b483466b41db56996af262294ea3e548ef144fed6cab0597640d56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314t-macosx_26_0_arm64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314t-macosx_26_0_arm64.whl |
|---|---|
| Size | 558.5 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
21d50fb117b4913bc7eac67257ba70245fd81cc6c062b1dfef8f0a14d253f8c1
|
|
BLAKE2b-256 checksum How to use checksums |
d71b8a80ed04ed65394d91d5ed61dd21f5078097906f1d5458ac24d9c6c64493
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314-win_amd64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 356.0 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f87c62903fc4f5e2d01d1a1bd5369367f222e32cfafea63577a4a4c9898fe3d3
|
|
BLAKE2b-256 checksum How to use checksums |
404361a24dc3ea2c7b8042cfa91c2e9730bc96dceaacf0939f03e901ca4bb415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f0887f05043ece867b5a4f54101340e1b5b64dd3e13d23c05d9a7088dfeffd2
|
|
BLAKE2b-256 checksum How to use checksums |
7f3a88d916d1f1eb31584a1434cf08bcc1d22c2f8c9e02e1b642a0191baf0f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp314-cp314-macosx_26_0_arm64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp314-cp314-macosx_26_0_arm64.whl |
|---|---|
| Size | 551.0 kB |
| Tags | CPython 3.14 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
acb9bfb32a603d17725d6b96ca7276cb7fa72cd6e802277daaf592a1b04562d0
|
|
BLAKE2b-256 checksum How to use checksums |
0102c7f580e8e1fb9575c6c129043146330adfe5f93eea06f19885fcfe740a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp313-cp313-win_amd64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 344.6 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
274886f81dac3e3e75c61feb8c80d506ffbf4c533740df394e18911c342aa5cf
|
|
BLAKE2b-256 checksum How to use checksums |
0dbc8ab480e4d9ab646426b9973381b53974992250c1dc10b6917d6c8026a78b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
47fe5061fd60bc2c349a28f8ee3d65c58ab5e92ccfa794e37d65ea8c0ce1e716
|
|
BLAKE2b-256 checksum How to use checksums |
d22c3f811ae7333e757a0b823735d039a563ed90cb8dd4d2535ae10eb6569b7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp313-cp313-macosx_26_0_arm64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp313-cp313-macosx_26_0_arm64.whl |
|---|---|
| Size | 550.4 kB |
| Tags | CPython 3.13 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0b59cfbe8df89ce0cb03d597baf6440c7c6d55d7c3e39cd4b146a5358c91469d
|
|
BLAKE2b-256 checksum How to use checksums |
98b1e6ce6be2313be11829f21716744f314248ec858b215d5aed89d8ae4423b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp312-cp312-win_amd64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 343.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d115b6997658a0fab065c0924760c8ef1c2806cc34dcac71d21bb3463a92ff38
|
|
BLAKE2b-256 checksum How to use checksums |
06bd9fc1248cc165182fa2bcb6716ca9f60427c5c122ec73e658269505fda8bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.5 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c9d42fb01c25a7e3e277bea8e03daf429f86cad4513182f9cbdccdbb222cdaaf
|
|
BLAKE2b-256 checksum How to use checksums |
fc4e03444e791c3bb38235918351df050f6ea90c7ddea2244675aabedf4ee6ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp312-cp312-macosx_26_0_arm64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp312-cp312-macosx_26_0_arm64.whl |
|---|---|
| Size | 549.0 kB |
| Tags | CPython 3.12 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
37d087f3857a39222fb38512cc213ff10e01da68d26728eecaf24174c5295db5
|
|
BLAKE2b-256 checksum How to use checksums |
4866655b8c96f0cdc234833d92b62a19427756a271b71dbd2c88de3c4b9f4680
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp311-cp311-win_amd64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 346.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7a916712f15de208ac79f9ff2d0e6b8405188156e2feee4ab761b0118ef0898c
|
|
BLAKE2b-256 checksum How to use checksums |
3dd0deb47a795d2f0b4e0c16e3186c3953376e416b30372ef1e5cee1f9c12b94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.6 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ae6c77299d49f5c9a17bc21aa421ea54eb970cf9a727756b8f120139646e56e5
|
|
BLAKE2b-256 checksum How to use checksums |
c43baca1a0c5f7c3384638dfafe8957a2c1f099a6cec53c99821790f62c9fafb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / meaningful_spot_detector-1.0.0-cp311-cp311-macosx_26_0_arm64.whl
| Download URL | meaningful_spot_detector-1.0.0-cp311-cp311-macosx_26_0_arm64.whl |
|---|---|
| Size | 550.2 kB |
| Tags | CPython 3.11 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
61626683730d17ef82e64b86def2685a1821225e923dff623e22c9f0876c40c1
|
|
BLAKE2b-256 checksum How to use checksums |
4c8c9141f796c5407cf664c76247d81b4228ef55cc7732ed7167756617affd2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for meaningful-spot-detector 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.