Skip to main content

Plugin napari permettant segmentation DIC + masque Brillouin

Project description

Plugin napari — Segmentation Cellpose (DIC) et application du masque sur Shift Brillouin

Ce plugin napari prend en entrée des images DIC et Shift Brillouin.
Il segmente automatiquement la zone d’intérêt (cellule) à partir de l’image DIC avec Cellpose (modèle cyto3 fine-tuné spécifiquement sur le DIC), puis applique le masque obtenu sur l’image de shift.

Fonctionnalités

  • Sélection d’une image DIC (pour la segmentation) et d’une image Shift Brillouin (pour l’application du masque).
  • Segmentation automatique via Cellpose (cyto3 fine-tuné DIC).
  • Création d’une couche Labels/Masque dans napari.
  • Création d’une couche Shift masqué (shift restreint à la cellule).

Structure du dépôt (plugin)

  • src/ivBM4PAPLUGIN/_widget.py : widget napari (UI)
  • src/ivBM4PAPLUGIN/segmentation.py : segmentation (Cellpose)
  • src/ivBM4PAPLUGIN/processing.py : application du masque / post-traitements
  • src/ivBM4PAPLUGIN/napari.yaml : déclaration du plugin (nom, commandes, widget)

Prérequis

  • Dépendances Python typiques :
    • napari
    • cellpose
    • numpy
    • scikit-image
    • torch

Pour connaître exactement les versions/dépendances utilisées dans ton projet, regarde les pyproject.toml (dans napari-plugin/ et éventuellement napari-env/).

Installation (recommandée en mode développement)

Depuis la racine du plugin :

python -m pip install -U pip
python -m pip install -e .

Lancer napari

napari

Utilisation

  1. Ouvre napari.
  2. Va dans le menu Plugins et sélectionne le widget correspondant au plugin.
    • Le nom exact du widget dépend de src/ivBM4PAPLUGIN/napari.yaml.
  3. Dans le widget :
    • Sélectionne la couche (ou le fichier) DIC.
    • Sélectionne la couche (ou le fichier) Shift Brillouin.
    • Sélectionne le modèle à utiliser pour la segmentation.
  4. Lance la segmentation :
    • Le plugin produit une couche Labels/Masque correspondant à la cellule (ROI).
  5. Applique le masque sur le shift :
    • Le plugin ajoute une couche Shift masqué (ROI extraite/isolée).

Hypothèses importantes

  • L’image DIC et l’image Shift doivent être alignées (même champ) pour que le masque s’applique correctement.
  • La qualité dépend des conditions d’acquisition et du fine-tuning du modèle.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivbm4paplugin-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ivbm4paplugin-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ivbm4paplugin-0.1.3.tar.gz.

File metadata

  • Download URL: ivbm4paplugin-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for ivbm4paplugin-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5979a5d6a788476cfce154fd2f6d6409f822677423980a862318be1b91fce530
MD5 15ceaf6b235f396e792ac9be4bec8c41
BLAKE2b-256 03ddb494d93deee04b164bae367099cd08fb5a69cb932c1d4d02a99e576339c9

See more details on using hashes here.

File details

Details for the file ivbm4paplugin-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ivbm4paplugin-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for ivbm4paplugin-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0372dd8961027b2b4be6d404fdcd966a7442ad6d0d0aaa8ad12cc86bb8f8537
MD5 746ccb98db419cabf546306de551fdb7
BLAKE2b-256 4b5a8a7f60884e563508d25004ca62354bb8368a7718a2dcb6c257469a99a3fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page