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

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.4.tar.gz (24.7 MB 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.4-py3-none-any.whl (24.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ivbm4paplugin-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b0c7918f6eb3c8b6222f0791958126441673845a67c4f31469f87a563dbe6727
MD5 beb536322ff6c97144f843f70bbe02fc
BLAKE2b-256 913972bf3c0ffc1850ff3755ff1dbde3c4a8b0a78801169578ea8a804ae85382

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ivbm4paplugin-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 24.7 MB
  • 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 763ad8e63836637b0554aa18d821a323935c25dd367e8f8aa6d325fbf948963e
MD5 a2884fee6769f7149b919c58afdfee2a
BLAKE2b-256 b36c249001feded952406f4bf038cbe2d3798acd95eb5bce8f2fa75b84cd6fc7

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