Panoptic Quality (PQ) computation for binary masks.
Project description
Panoptica
Computing instance-wise segmentation quality metrics for 2D and 3D semantic- and instance segmentation maps.
Features
The package provides 3 core modules:
- Instance Approximator: instance approximation algorithms in panoptic segmentation evaluation. Available now: connected components algorithm.
- Instance Matcher: instance matching algorithm in panoptic segmentation evaluation, to align and compare predicted instances with reference instances.
- Instance Evaluator: Evaluation of panoptic segmentation performance by evaluating matched instance pairs and calculating various metrics like true positives, Dice score, IoU, and ASSD for each instance.
Installation
The current release requires python 3.10. To install it, you can simply run:
pip install panoptica
Use Cases
All use cases have tutorials showcasing the usage that can be found at BrainLesion/tutorials/panoptica.
Semantic Segmentation Input
Although for many biomedical segmentation problems, an instance-wise evaluation is highly relevant and desirable, they are still addressed as semantic segmentation problems due to lack of appropriate instance labels.
Modules [1-3] can be used to obtain panoptic metrics of matched instances based on a semantic segmentation input.
Unmatched Instances Input
It is a common issue that instance segementation outputs have good segmentations with mismatched labels.
For this case modules [2-3] can be utilized to match the instances and report panoptic metrics.
Matched Instances Input
Ideally the input data already provides matched instances.
In this case module 3 can be used to directly report panoptic metrics without requiring any internal preprocessing.
Citation
If you have used panoptica in your research, please cite us!
The citation can be exported from: TODO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for panoptica-0.5.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef25744a8a3fa7e5125972853e1ec7dfe87baeceb3189575bdbdc6e5bceb192 |
|
MD5 | 8418154abf4cc52580b7ed6c364c02d9 |
|
BLAKE2b-256 | ca764b692ec4cf122618de7a0469a64b40b45dbb66cefa509d71a47392ebad0a |